|
libabigail
|
Simplified implementation of std::optional just enough to be used as a replacement for our purposes and when compiling with pre C++17. More...
#include <abg-cxx-compat.h>
Public Member Functions | |
| optional (const T &value) | |
| bool | has_value () const noexcept |
| operator bool () const noexcept | |
| T & | operator* () &noexcept |
| const T & | operator* () const &noexcept |
| const T * | operator-> () const noexcept |
| T * | operator-> () noexcept |
| optional & | operator= (const T &value) |
| const T & | value () const |
| const T | value_or (const T &default_value) const |
Simplified implementation of std::optional just enough to be used as a replacement for our purposes and when compiling with pre C++17.
The implementation intentionally does not support a whole lot of features to minimize the maintenance effort with this.
Definition at line 38 of file abg-cxx-compat.h.
|
inline |
Definition at line 44 of file abg-cxx-compat.h.
|
inline |
Definition at line 45 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 48 of file abg-cxx-compat.h.
|
inlineexplicitnoexcept |
Definition at line 93 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 74 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 70 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 78 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 82 of file abg-cxx-compat.h.
|
inline |
Definition at line 86 of file abg-cxx-compat.h.
|
inline |
Definition at line 54 of file abg-cxx-compat.h.
|
inline |
Definition at line 62 of file abg-cxx-compat.h.