simdjson
3.11.0
Ridiculously Fast JSON
|
A parsed JSON document. More...
Public Member Functions | |
document () noexcept=default | |
Create a document container with zero capacity. More... | |
document (document &&other) noexcept=default | |
Take another document's buffers. More... | |
document & | operator= (document &&other) noexcept=default |
Take another document's buffers. More... | |
element | root () const noexcept |
Get the root element of this document as a JSON array. | |
A parsed JSON document.
This class cannot be copied, only moved, to avoid unintended allocations.
Definition at line 16 of file document.h.
|
defaultnoexcept |
Create a document container with zero capacity.
The parser will allocate capacity as needed.
|
defaultnoexcept |
Take another document's buffers.
other | The document to take. Its capacity is zeroed and it is invalidated. |
Take another document's buffers.
other | The document to take. Its capacity is zeroed. |