Bitcoin Core  21.99.0
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.


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


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


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

Substitute for C++17 std::nullopt.

Definition at line 24 of file optional.h.