Input iterator over the tokens of a bound Tokenizer input string.
Synopsis
Declared in <bdlb_tokenizer.h>
class TokenizerIterator;
Description
This class provides a C++‐standards‐conforming input iterator over the tokens in the input string suppled at construction (along with the designation of soft and hard delimiter characters) to a Tokenizer object. Tokens are returned, using a bslstl::StringRef ‐‐ by value ‐‐ that means the iterated references remain valid until the underlying input string itself is modified or destroyed. Note that all iterators are invalidated whenever the input string in the parent Tokenizer change.
Type Aliases
Name |
Description |
Signed type used to represent distances between iterators. |
|
Tag identifying this type as an input iterator. |
|
Proxy type returned by |
|
Reference type returned by |
|
Element type yielded by this iterator ( |
Member Functions
Name |
Description |
|
Constructors |
Assign to this object the value of the specified |
|
Return a reference to the non‐modifiable current token. |
|
Advance this iterator to the next token and return |
|
Return a proxy holding the non‐modifiable current token. |
Friends
Name |
Description |
Return |
|
Return |
|
Provides sequential read‐only access to tokens with soft and hard delimiters. |
Non-Member Functions
Name |
Description |
Advance |
Created with MrDocs