Return a reference to the non‐modifiable current token.
Synopsis
Declared in <bdlb_tokenizer.h>
bslstl::StringRef
token() const;
Description
Return a reference to the non‐modifiable current token (i.e., maximal sequence of non‐delimiter characters) in the input string. The returned reference remains valid so long as the underlying input is not modified or destroyed ‐‐ irrespective of the state (or existence) of this object. The behavior is undefined unless the iteration state of this object is initially valid, or if the underlying input has been modified or destroyed since this object was most recently reset (or created).
Return Value
reference to the non‐modifiable current token
Created with MrDocs