|
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) |
| void | reset () |
| 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 45 of file abg-cxx-compat.h.
|
inline |
Definition at line 51 of file abg-cxx-compat.h.
|
inline |
Definition at line 52 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 55 of file abg-cxx-compat.h.
|
inlineexplicitnoexcept |
Definition at line 106 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 81 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 77 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 85 of file abg-cxx-compat.h.
|
inlinenoexcept |
Definition at line 89 of file abg-cxx-compat.h.
|
inline |
Definition at line 93 of file abg-cxx-compat.h.
|
inline |
Definition at line 101 of file abg-cxx-compat.h.
|
inline |
Definition at line 61 of file abg-cxx-compat.h.
|
inline |
Definition at line 69 of file abg-cxx-compat.h.