|
Shaka Player Embedded
|
#include <optional.h>
Public Member Functions | |
| optional () | |
| optional (nullopt_t) | |
| optional (std::nullptr_t)=delete | |
| template<class U = T, class = typename std::enable_if< std::is_constructible<T, U&&>::value && !is_optional<typename std::decay<U>::type>::value>::type> | |
| optional (U &&value) | |
| optional (const optional &other) | |
| optional (optional &&other) | |
| template<class U > | |
| optional (const optional< U > &other) | |
| template<class U > | |
| optional (optional< U > &&other) | |
| ~optional () | |
| optional & | operator= (const optional &other) |
| optional & | operator= (optional &&other) |
| const T * | operator-> () const |
| T * | operator-> () |
| const T & | operator* () const & |
| T & | operator* () & |
| const T && | operator* () const && |
| T && | operator* () && |
| operator bool () const | |
| bool | has_value () const |
| const T & | value () const & |
| T & | value () & |
| const T && | value () const && |
| T && | value () && |
| template<class U > | |
| T | value_or (U &&default_value) const & |
| template<class U > | |
| T | value_or (U &&default_value) && |
| void | reset () |
| template<class... Args> | |
| T & | emplace (Args &&... args) |
Friends | |
| template<class U > | |
| class | optional |
This is a look-alike for the std::optional type. The most common usages of this type have been implemented, but this is not a general implementation. For example, this doesn't throw exceptions and instead asserts.
Definition at line 39 of file optional.h.
|
inline |
Definition at line 57 of file optional.h.
|
inline |
Definition at line 58 of file optional.h.
|
delete |
|
inline |
Definition at line 65 of file optional.h.
|
inline |
Definition at line 67 of file optional.h.
|
inline |
Definition at line 71 of file optional.h.
|
inline |
Definition at line 78 of file optional.h.
|
inline |
Definition at line 83 of file optional.h.
|
inline |
Definition at line 90 of file optional.h.
|
inline |
Definition at line 182 of file optional.h.
|
inline |
Definition at line 143 of file optional.h.
|
inlineexplicit |
Definition at line 140 of file optional.h.
|
inline |
Definition at line 123 of file optional.h.
|
inline |
Definition at line 127 of file optional.h.
|
inline |
Definition at line 131 of file optional.h.
|
inline |
Definition at line 135 of file optional.h.
|
inline |
Definition at line 115 of file optional.h.
|
inline |
Definition at line 119 of file optional.h.
|
inline |
Definition at line 97 of file optional.h.
|
inline |
Definition at line 104 of file optional.h.
|
inline |
Definition at line 174 of file optional.h.
|
inline |
Definition at line 147 of file optional.h.
|
inline |
Definition at line 151 of file optional.h.
|
inline |
Definition at line 155 of file optional.h.
|
inline |
Definition at line 159 of file optional.h.
|
inline |
Definition at line 165 of file optional.h.
Definition at line 169 of file optional.h.
Definition at line 191 of file optional.h.
| char shaka::optional< T >::dummy_ |
Definition at line 195 of file optional.h.
| T shaka::optional< T >::value_ |
Definition at line 194 of file optional.h.
1.8.13