|
|
ETL_CONSTEXPR20_STL T * | operator-> () |
| | Pointer operator.
|
|
ETL_CONSTEXPR20_STL const T * | operator-> () const |
| | Pointer operator.
|
|
ETL_CONSTEXPR20_STL T & | operator* () ETL_LVALUE_REF_QUALIFIER |
| | Dereference operator.
|
|
ETL_CONSTEXPR20_STL const T & | operator* () const ETL_LVALUE_REF_QUALIFIER |
| | Dereference operator.
|
|
ETL_CONSTEXPR20_STL bool | has_value () const ETL_NOEXCEPT |
|
ETL_CONSTEXPR20_STL ETL_EXPLICIT | operator bool () const |
| | Bool conversion operator.
|
|
ETL_CONSTEXPR20_STL T & | value () ETL_LVALUE_REF_QUALIFIER |
| | Get a reference to the value.
|
|
ETL_CONSTEXPR20_STL const T & | value () const ETL_LVALUE_REF_QUALIFIER |
| | Get a const reference to the value.
|
|
ETL_CONSTEXPR20_STL T | value_or (const T &default_value) const ETL_LVALUE_REF_QUALIFIER |
| | Gets the value or a default if not valid.
|
|
ETL_CONSTEXPR20_STL void | swap (optional_impl &other) |
| | Swaps this value with another.
|
|
ETL_CONSTEXPR20_STL void | reset () |
| | Reset back to invalid.
|
|
ETL_CONSTEXPR20_STL T & | emplace (const optional_impl< T > &other) |
| T & | emplace () |
| template<typename T1> |
| etl::enable_if<!etl::is_base_of< this_type, typenameetl::remove_cv< typenameetl::remove_reference< T1 >::type >::type >::value &&!etl::is_same< etl::optional< T >, typenameetl::remove_cv< typenameetl::remove_reference< T1 >::type >::type >::value, T & >::type | emplace (const T1 &value1) |
| template<typename T1, typename T2> |
| T & | emplace (const T1 &value1, const T2 &value2) |
| template<typename T1, typename T2, typename T3> |
| T & | emplace (const T1 &value1, const T2 &value2, const T3 &value3) |
| template<typename T1, typename T2, typename T3, typename T4> |
| T & | emplace (const T1 &value1, const T2 &value2, const T3 &value3, const T4 &value4) |
|
|
ETL_CONSTEXPR20_STL | optional_impl () |
| | Constructor.
|
|
ETL_CONSTEXPR20_STL | optional_impl (etl::nullopt_t) |
| | Constructor with nullopt.
|
|
ETL_CONSTEXPR20_STL | optional_impl (const optional_impl< T > &other) |
| | Copy constructor.
|
|
ETL_CONSTEXPR20_STL | ~optional_impl () |
| | Destructor.
|
|
ETL_CONSTEXPR20_STL optional_impl & | operator= (etl::nullopt_t) |
| | Assignment operator from nullopt.
|
|
ETL_CONSTEXPR20_STL optional_impl & | operator= (const optional_impl< T > &other) |
| | Assignment operator from optional_impl.
|
|
ETL_CONSTEXPR20_STL optional_impl & | operator= (const T &value_) |
| | Assignment operator from value type.
|