Bitcoin Core  0.20.99
P2P Digital Currency
Typedefs | Functions | Variables
optional.h File Reference
#include <utility>
#include <boost/optional.hpp>
Include dependency graph for optional.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

template<typename T >
using Optional = boost::optional< T >
 Substitute for C++17 std::optional. More...
 

Functions

template<typename T >
Optional< T > MakeOptional (bool condition, T &&value)
 Substitute for C++17 std::make_optional. More...
 

Variables

static auto & nullopt = boost::none
 Substitute for C++17 std::nullopt. More...
 

Typedef Documentation

◆ Optional

template<typename T >
using Optional = boost::optional<T>

Substitute for C++17 std::optional.

Definition at line 14 of file optional.h.

Function Documentation

◆ MakeOptional()

template<typename T >
Optional<T> MakeOptional ( bool  condition,
T &&  value 
)

Substitute for C++17 std::make_optional.

Definition at line 18 of file optional.h.

Here is the caller graph for this function:

Variable Documentation

◆ nullopt

auto& nullopt = boost::none
static

Substitute for C++17 std::nullopt.

Definition at line 24 of file optional.h.