join overloads
Synopses
Declared in <folly/String.h>
Join the elements of a container, returning the result.
template<
class Delim,
class Container>
std::string
join(
Delim const& delimiter,
Container const& container);
Join the elements of an initializer list, returning the result.
template<
class Delim,
class Value>
std::string
join(
Delim const& delimiter,
std::initializer_list<Value> const& values);
Join a range of tokens, returning the result.
template<
class Delim,
class Iterator>
requires std::is_base_of<
std::forward_iterator_tag,
typename std::iterator_traits<Iterator>::iterator_category>::value
std::string
join(
Delim const& delimiter,
Iterator begin,
Iterator end);
Join the elements of a container into a string.
template<
class Delim,
class Container,
class String>
void
join(
Delim const& delimiter,
Container const& container,
String& output);
Join the elements of an initializer list into a string.
template<
class Delim,
class Value,
class String>
void
join(
Delim const& delimiter,
std::initializer_list<Value> const& values,
String& output);
Join list of tokens.
template<
class Delim,
class Iterator,
class String>
void
join(
Delim const& delimiter,
Iterator begin,
Iterator end,
String& output);
Return Value
The joined string.
Parameters
Name |
Description |
delimiter |
The delimiter placed between elements. |
container |
The container of tokens to join. |
values |
The values to join. |
begin |
Iterator to the first token. |
end |
Iterator past the last token. |
output |
The string that the joined result is stored in. |
Created with MrDocs