|
GDBserver
|
#include "gdb_optional.h"
Public Member Functions | |
| constexpr | optional () |
| template<typename... Args> | |
| constexpr | optional (in_place_t, Args &&... args) |
| ~optional () | |
| optional (const optional &other) | |
| optional (optional &&other) noexcept(std::is_nothrow_move_constructible< T >()) | |
| constexpr | optional (const T &other) |
| constexpr | optional (T &&other) noexcept(std::is_nothrow_move_constructible< T >()) |
| optional & | operator= (const optional &other) |
| optional & | operator= (optional &&other) noexcept(And< std::is_nothrow_move_constructible< T >, std::is_nothrow_move_assignable< T >>()) |
| optional & | operator= (const T &other) |
| optional & | operator= (T &&other) noexcept(And< std::is_nothrow_move_constructible< T >, std::is_nothrow_move_assignable< T >>()) |
| template<typename... Args> | |
| T & | emplace (Args &&... args) |
| constexpr const T * | operator-> () const |
| T * | operator-> () |
| constexpr const T & | operator* () const & |
| T & | operator* () & |
| T && | operator* () && |
| constexpr const T && | operator* () const && |
| constexpr | operator bool () const noexcept |
| constexpr bool | has_value () const noexcept |
| void | reset () noexcept |
Private Member Functions | |
| void | destroy () |
| T & | get () noexcept |
| constexpr const T & | get () const noexcept |
Private Attributes | |
| union { | |
| struct { | |
| } m_dummy | |
| T m_item | |
| }; | |
| bool | m_instantiated = false |
Definition at line 51 of file gdb_optional.h.
|
inline |
Definition at line 55 of file gdb_optional.h.
|
inline |
Definition at line 60 of file gdb_optional.h.
|
inline |
Definition at line 65 of file gdb_optional.h.
References gdb::optional< T >::reset().
|
inline |
Definition at line 70 of file gdb_optional.h.
References gdb::optional< T >::emplace(), gdb::optional< T >::get(), and gdb::optional< T >::m_instantiated.
|
inlinenoexcept |
Definition at line 76 of file gdb_optional.h.
References gdb::optional< T >::emplace().
|
inline |
Definition at line 83 of file gdb_optional.h.
|
inlinenoexcept |
Definition at line 88 of file gdb_optional.h.
|
inlineprivate |
Definition at line 195 of file gdb_optional.h.
References gdb_assert, gdb::optional< T >::m_instantiated, and gdb::optional< T >::m_item.
Referenced by gdb::optional< T >::reset().
|
inline |
Definition at line 152 of file gdb_optional.h.
References gdb::optional< T >::m_instantiated, gdb::optional< T >::m_item, and gdb::optional< T >::reset().
Referenced by gdb::optional< T >::operator=(), and gdb::optional< T >::optional().
|
inlineprivatenoexcept |
Definition at line 203 of file gdb_optional.h.
References gdb::optional< T >::m_item.
Referenced by gdb::optional< T >::operator=(), and gdb::optional< T >::optional().
|
inlineprivatenoexcept |
Definition at line 204 of file gdb_optional.h.
References gdb::optional< T >::m_item.
|
inlinenoexcept |
Definition at line 182 of file gdb_optional.h.
References gdb::optional< T >::m_instantiated.
|
inlineexplicitnoexcept |
Definition at line 179 of file gdb_optional.h.
References gdb::optional< T >::m_instantiated.
|
inline |
Definition at line 167 of file gdb_optional.h.
|
inline |
Definition at line 170 of file gdb_optional.h.
|
inline |
Definition at line 173 of file gdb_optional.h.
|
inline |
Definition at line 176 of file gdb_optional.h.
|
inline |
Definition at line 161 of file gdb_optional.h.
|
inline |
Definition at line 164 of file gdb_optional.h.
|
inline |
Definition at line 97 of file gdb_optional.h.
References gdb::optional< T >::emplace(), gdb::optional< T >::get(), gdb::optional< T >::m_instantiated, and gdb::optional< T >::reset().
|
inlinenoexcept |
Definition at line 113 of file gdb_optional.h.
References gdb::optional< T >::emplace(), gdb::optional< T >::m_instantiated, and gdb::optional< T >::reset().
|
inline |
Definition at line 130 of file gdb_optional.h.
References gdb::optional< T >::emplace(), and gdb::optional< T >::m_instantiated.
|
inlinenoexcept |
Definition at line 140 of file gdb_optional.h.
References gdb::optional< T >::emplace(), and gdb::optional< T >::m_instantiated.
|
inlinenoexcept |
Definition at line 186 of file gdb_optional.h.
References gdb::optional< T >::destroy(), and gdb::optional< T >::m_instantiated.
Referenced by gdb::optional< T >::emplace(), gdb::optional< T >::operator=(), and gdb::optional< T >::~optional().
| union { ... } |
| struct { ... } gdb::optional< T >::m_dummy |
|
private |
Definition at line 214 of file gdb_optional.h.
Referenced by gdb::optional< T >::destroy(), gdb::optional< T >::emplace(), gdb::optional< T >::has_value(), gdb::optional< T >::operator bool(), gdb::optional< T >::operator=(), gdb::optional< T >::optional(), and gdb::optional< T >::reset().
| T gdb::optional< T >::m_item |
Definition at line 210 of file gdb_optional.h.
Referenced by gdb::optional< T >::destroy(), gdb::optional< T >::emplace(), and gdb::optional< T >::get().
1.8.14