Bitcoin
Typedefs | Functions | Variables
optional.h File Reference
#include <utility>
#include <boost/optional.hpp>

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.

Function Documentation

◆ MakeOptional()

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

Substitute for C++17 std::make_optional.

Variable Documentation

◆ nullopt

auto& nullopt = boost::none
static

Substitute for C++17 std::nullopt.