Public Types | |
using | value_type = T |
using | value_type = T |
Public Member Functions | |
ReferenceSensitiveOptional ()=default | |
ReferenceSensitiveOptional (const T &value) | |
ReferenceSensitiveOptional (T &&value) | |
ReferenceSensitiveOptional & | operator= (const T &value) |
ReferenceSensitiveOptional & | operator= (T &&value) |
template<typename... Args> | |
T & | emplace (Args &&...args) |
const T & | value () const noexcept |
const T & | operator* () const noexcept |
const T * | operator-> () const noexcept |
operator bool () const noexcept | |
ReferenceSensitiveOptional ()=default | |
ReferenceSensitiveOptional (const T &value) | |
ReferenceSensitiveOptional (T &&value) | |
ReferenceSensitiveOptional & | operator= (const T &value) |
ReferenceSensitiveOptional & | operator= (T &&value) |
template<typename... Args> | |
T & | emplace (Args &&...args) |
const T & | value () const noexcept |
const T & | operator* () const noexcept |
const T * | operator-> () const noexcept |
operator bool () const noexcept | |
Private Attributes | |
std::vector< T > | storage |
Definition at line 121 of file test_stl.cpp.
using ReferenceSensitiveOptional< T >::value_type = T |
Definition at line 123 of file test_stl.cpp.
using ReferenceSensitiveOptional< T >::value_type = T |
Definition at line 124 of file test_stl.cpp.
|
default |
|
inline |
Definition at line 127 of file test_stl.cpp.
|
inline |
Definition at line 129 of file test_stl.cpp.
|
default |
|
inline |
Definition at line 128 of file test_stl.cpp.
|
inline |
Definition at line 130 of file test_stl.cpp.
|
inline |
Definition at line 140 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage.
|
inline |
Definition at line 141 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage.
|
inlineexplicitnoexcept |
Definition at line 155 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage.
|
inlineexplicitnoexcept |
Definition at line 156 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage.
|
inlinenoexcept |
Definition at line 151 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::value().
|
inlinenoexcept |
Definition at line 152 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::value().
|
inlinenoexcept |
Definition at line 153 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::value().
|
inlinenoexcept |
Definition at line 154 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::value().
|
inline |
Definition at line 130 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage, and ReferenceSensitiveOptional< T >::value().
|
inline |
Definition at line 131 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage, and ReferenceSensitiveOptional< T >::value().
|
inline |
Definition at line 134 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage, and ReferenceSensitiveOptional< T >::value().
|
inline |
Definition at line 135 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage, and ReferenceSensitiveOptional< T >::value().
|
inlinenoexcept |
Definition at line 146 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage.
Referenced by ReferenceSensitiveOptional< T >::operator*(), ReferenceSensitiveOptional< T >::operator->(), and ReferenceSensitiveOptional< T >::operator=().
|
inlinenoexcept |
Definition at line 147 of file test_stl.cpp.
References ReferenceSensitiveOptional< T >::storage.
|
private |
Definition at line 158 of file test_stl.cpp.
Referenced by ReferenceSensitiveOptional< T >::emplace(), ReferenceSensitiveOptional< T >::operator bool(), ReferenceSensitiveOptional< T >::operator=(), and ReferenceSensitiveOptional< T >::value().