Overload of StrSplit() that takes ownership of a std::string input.
Synopsis
Declared in <absl/strings/str_split.h>
template<
typename Delimiter,
typename StringType,
EnableSplitIfString<StringType> = 0>
/* implementation-defined */::Splitter</* implementation-defined */::type, AllowEmpty, std::string>
StrSplit(
StringType&& text,
Delimiter d);
Return Value
A lazy range of substrings convertible to the caller's collection.
Parameters
Name |
Description |
text |
The string to split; ownership is transferred to the result. |
d |
The delimiter identifying the split points. |
Created with MrDocs