[#BloombergLP-bdlb-Tokenizer-token]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Tokenizer.adoc[Tokenizer]::token
:relfileprefix: ../../../
:mrdocs:

Return a reference to the non&hyphen;modifiable current token&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;tokenizer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef]
token() const;
----

== Description

Return a reference to the non&hyphen;modifiable current token (i&period;e&period;, maximal sequence of non&hyphen;delimiter characters) in the input string&period; The returned reference remains valid so long as the underlying input is not modified or destroyed &hyphen;&hyphen; irrespective of the state (or existence) of this object&period; 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)&period;

== Return Value

reference to the non&hyphen;modifiable current token


[.small]#Created with https://www.mrdocs.com[MrDocs]#
