![]() |
simdjson 4.2.3
Ridiculously Fast JSON
|
A parsed JSON document. More...
#include <document.h>
Public Member Functions | |
| document () noexcept=default | |
| Create a document container with zero capacity. | |
| document (document &&other) noexcept=default | |
| Take another document's buffers. | |
| document & | operator= (document &&other) noexcept=default |
| Take another document's buffers. | |
| 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. |
|
inlinenoexcept |
Get the root element of this document as a JSON array.
Definition at line 20 of file document-inl.h.