libabigail
Public Member Functions | List of all members
optional< T > Class Template Reference

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
 
optionaloperator= (const T &value)
 
const T & value () const
 
const T value_or (const T &default_value) const
 

Detailed Description

template<typename T>
class abg_compat::optional< T >

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.


The documentation for this class was generated from the following file: