| 413 | |
| 414 | template <typename TFunctor> |
| 415 | void Tokenize(std::string_view str, char const * delims, TFunctor && f) |
| 416 | { |
| 417 | SimpleTokenizer iter(str, delims); |
| 418 | while (iter) |
| 419 | { |
| 420 | f(*iter); |
| 421 | ++iter; |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | /// @note Lifetime of return container is the same as \a str lifetime. Avoid temporary input. |
| 426 | template <class ResultT = std::string_view> |