Load the current token value into data when applicable.
Declared in <bdljsn_tokenizer.h>
int
value(std::string_view* data) const;
Load into the specified data the value of the specified token if the current token's type is e_ELEMENT_NAME or e_ELEMENT_VALUE or leave data unmodified otherwise. Return 0 on success and a non-zero value otherwise. Note that the returned data is only valid until the next manipulator call on this object.
0 on success and a non-zero value otherwise
| Name | Description |
|---|---|
| data | receives the token value for name or value tokens |