Hermes
|
Holds a valid object or an error. More...
#include <result.h>
Static Public Member Functions | |
static HERMES_DEVICE_CALLABLE Result< T, E > | error (E e) |
|
inlineexplicit |
err |
|
inlineexplicit |
Value constructor.
v |
|
inlineexplicit |
Move value constructor.
v |
|
inline |
Copy constructor.
other |
|
inlinenoexcept |
Move constructor.
other |
|
inlinestatic |
e |
|
inlineexplicitnoexcept |
Casts to bool (indicates whether this contains value)
|
inline |
Gets value reference.
|
inline |
Gets value const reference.
|
inline |
Gets value pointer.
|
inline |
Gets const value pointer.
|
inline |
Copy assignment.
other |
|
inline |
Value assignment.
v |
|
inlinenoexcept |
Move assignment.
other |
|
inline |
Move value assignment.
v |
|
inline |
Gets value's reference.
|
inline |
Gets value's const reference.
|
inline |
Gets value copy (if present)
v | value returned in case of empty |