|
constexpr | Optional (const Optional &other)=default |
|
constexpr | Optional (Optional &&other)=default |
|
constexpr | Optional (nullopt_t) |
|
template<typename U , typename std::enable_if< std::is_constructible< T, const U &>::value &&!internal::IsConvertibleFromOptional< T, U >::value &&std::is_convertible< const U &, T >::value, bool >::type = false> |
| Optional (const Optional< U > &other) |
|
template<typename U , typename std::enable_if< std::is_constructible< T, const U &>::value &&!internal::IsConvertibleFromOptional< T, U >::value &&!std::is_convertible< const U &, T >::value, bool >::type = false> |
| Optional (const Optional< U > &other) |
|
template<typename U , typename std::enable_if< std::is_constructible< T, U &&>::value &&!internal::IsConvertibleFromOptional< T, U >::value &&std::is_convertible< U &&, T >::value, bool >::type = false> |
| Optional (Optional< U > &&other) |
|
template<typename U , typename std::enable_if< std::is_constructible< T, U &&>::value &&!internal::IsConvertibleFromOptional< T, U >::value &&!std::is_convertible< U &&, T >::value, bool >::type = false> |
| Optional (Optional< U > &&other) |
|
template<class... Args> |
constexpr | Optional (in_place_t, Args &&... args) |
|
template<class U , class... Args, class = typename std::enable_if<std::is_constructible< value_type, std::initializer_list<U>&, Args...>::value>::type> |
constexpr | Optional (in_place_t, std::initializer_list< U > il, Args &&... args) |
|
template<typename U = value_type, typename std::enable_if< std::is_constructible< T, U &&>::value &&!std::is_same< internal::RemoveCvRefT< U >, in_place_t >::value &&!std::is_same< internal::RemoveCvRefT< U >, Optional< T >>::value &&std::is_convertible< U &&, T >::value, bool >::type = false> |
constexpr | Optional (U &&value) |
|
template<typename U = value_type, typename std::enable_if< std::is_constructible< T, U &&>::value &&!std::is_same< internal::RemoveCvRefT< U >, in_place_t >::value &&!std::is_same< internal::RemoveCvRefT< U >, Optional< T >>::value &&!std::is_convertible< U &&, T >::value, bool >::type = false> |
constexpr | Optional (U &&value) |
|
Optional & | operator= (const Optional &other)=default |
|
Optional & | operator= (Optional &&other)=default |
|
Optional & | operator= (nullopt_t) |
|
template<typename U > |
std::enable_if< !std::is_same< internal::RemoveCvRefT< U >, Optional< T > >::value &&std::is_constructible< T, U >::value &&std::is_assignable< T &, U >::value &&(!std::is_scalar< T >::value||!std::is_same< typename std::decay< U >::type, T >::value), Optional & >::type | operator= (U &&value) |
|
template<typename U > |
std::enable_if<!internal::IsAssignableFromOptional< T, U >::value &&std::is_constructible< T, const U & >::value &&std::is_assignable< T &, const U & >::value, Optional & >::type | operator= (const Optional< U > &other) |
|
template<typename U > |
std::enable_if<!internal::IsAssignableFromOptional< T, U >::value &&std::is_constructible< T, U >::value &&std::is_assignable< T &, U >::value, Optional & >::type | operator= (Optional< U > &&other) |
|
const T * | operator-> () const |
|
T * | operator-> () |
|
const T & | operator* () const & |
|
T & | operator* () & |
|
const T && | operator* () const && |
|
T && | operator* () && |
|
constexpr | operator bool () const |
|
constexpr bool | has_value () const |
|
T & | value () & |
|
const T & | value () const & |
|
T && | value () && |
|
const T && | value () const && |
|
template<class U > |
constexpr T | value_or (U &&default_value) const & |
|
template<class U > |
T | value_or (U &&default_value) && |
|
void | swap (Optional &other) |
|
void | reset () |
|
template<class... Args> |
T & | emplace (Args &&... args) |
|
template<class U , class... Args> |
std::enable_if< std::is_constructible< T, std::initializer_list< U > &, Args &&... >::value, T & >::type | emplace (std::initializer_list< U > il, Args &&... args) |
|
template<typename T>
class v8::base::Optional< T >
Definition at line 40 of file optional.h.