simdjson
3.11.0
Ridiculously Fast JSON
|
The result of a simdjson operation that could fail. More...
Public Member Functions | |
simdjson_inline void | tie (T &value, error_code &error) &&noexcept |
Move the value and the error to the provided variables. More... | |
simdjson_warn_unused simdjson_inline error_code | get (T &value) &&noexcept |
Move the value to the provided variable. More... | |
simdjson_inline error_code | error () const noexcept |
The error. | |
simdjson_inline T & | value () &noexcept(false) |
Get the result value. More... | |
simdjson_inline T && | value () &&noexcept(false) |
Take the result value (move it). More... | |
simdjson_inline T && | take_value () &&noexcept(false) |
Take the result value (move it). More... | |
simdjson_inline | operator T&& () &&noexcept(false) |
Cast to the value (will throw on error). More... | |
simdjson_inline const T & | value_unsafe () const &noexcept |
Get the result value. More... | |
simdjson_inline T && | value_unsafe () &&noexcept |
Take the result value (move it). More... | |
The result of a simdjson operation that could fail.
Gives the option of reading error codes, or throwing an exception by casting to the desired result.
|
noexcept |
Move the value to the provided variable.
value | The variable to assign the value to. May not be set if there is an error. |
Definition at line 126 of file error-inl.h.
|
noexcept |
Cast to the value (will throw on error).
simdjson_error | if there was an error. |
Definition at line 153 of file error-inl.h.
|
noexcept |
Take the result value (move it).
simdjson_error | if there was an error. |
Definition at line 148 of file error-inl.h.
|
noexcept |
Move the value and the error to the provided variables.
simdjson_result<T> inline implementation
value | The variable to assign the value to. May not be set if there is an error. |
error | The variable to assign the error to. Set to SUCCESS if there is no error. |
Definition at line 121 of file error-inl.h.
|
noexcept |
Take the result value (move it).
simdjson_error | if there was an error. |
|
noexcept |
Get the result value.
simdjson_error | if there was an error. |
|
noexcept |
Take the result value (move it).
This function is safe if and only the error() method returns a value that evaluates to false.
|
noexcept |
Get the result value.
This function is safe if and only the error() method returns a value that evaluates to false.