[#BloombergLP-bdljsn-Tokenizer-value]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Tokenizer.adoc[Tokenizer]::value
:relfileprefix: ../../../
:mrdocs:

Load the current token value into `data` when applicable&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
value(std::string&lowbar;view* data) const;
----

== Description

Load into the specified `data` the value of the specified token if the current token&apos;s type is `e&lowbar;ELEMENT&lowbar;NAME` or `e&lowbar;ELEMENT&lowbar;VALUE` or leave `data` unmodified otherwise&period; Return 0 on success and a non&hyphen;zero value otherwise&period; Note that the returned `data` is only valid until the next manipulator call on this object&period;

== Return Value

0 on success and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| receives the token value for name or value tokens
|===


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