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.