Skip to content

Rose::StringUtility::join_range

Join individual items to form a single string.

Synopsis

Declared in <src/Rose/StringUtility/SplitJoin.h>

template<class Iterator>
std::string
join_range(
    std::string const& separator,
    Iterator begin,
    Iterator end);

Description

Given a container containing printable objects (such as std::list<std::string>, join the objects together separated from one another by the specified separator. The separator does not appear before the first object or after the final object. If the container is empty then an empty string is returned.

@{

Return Value

Joined string.

Parameters

Name

Description

separator

Separator string.

begin

Begin iterator.

end

End iterator.

Created with MrDocs