simdjson  0.3.1
Ridiculously Fast JSON
Public Member Functions | List of all members
simdjson::simdjson_result< T > Struct Template Reference

The result of a simdjson operation that could fail. More...

Inheritance diagram for simdjson::simdjson_result< T >:

Public Member Functions

really_inline void tie (T &t, error_code &e) &&noexcept
 Move the value and the error to the provided variables. More...
 
really_inline error_code error () const noexcept
 The error.
 
really_inline T & value () noexcept(false)
 Get the result value. More...
 
really_inline T && take_value () &&noexcept(false)
 Take the result value (move it). More...
 
really_inline operator T&& () &&noexcept(false)
 Cast to the value (will throw on error). More...
 

Detailed Description

template<typename T>
struct simdjson::simdjson_result< T >

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.

Definition at line 166 of file error.h.

Member Function Documentation

◆ operator T&&()

template<typename T >
really_inline simdjson::simdjson_result< T >::operator T&&
noexcept

Cast to the value (will throw on error).

Exceptions
simdjson_errorif there was an error.

Definition at line 144 of file error.h.

◆ take_value()

template<typename T >
really_inline T && simdjson::simdjson_result< T >::take_value
noexcept

Take the result value (move it).

Exceptions
simdjson_errorif there was an error.

Definition at line 139 of file error.h.

◆ tie()

template<typename T >
really_inline void simdjson::simdjson_result< T >::tie ( T &  t,
error_code &  e 
) &&
noexcept

Move the value and the error to the provided variables.

simdjson_result<T> inline implementation

Definition at line 122 of file error.h.

◆ value()

template<typename T >
really_inline T & simdjson::simdjson_result< T >::value
noexcept

Get the result value.

Exceptions
simdjson_errorif there was an error.

Definition at line 134 of file error.h.


The documentation for this struct was generated from the following file: