Bitcoin Core  21.99.0
P2P Digital Currency
optional.h
Go to the documentation of this file.
1 // Copyright (c) 2017-2020 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_OPTIONAL_H
6 #define BITCOIN_OPTIONAL_H
7 
8 #include <optional>
9 #include <utility>
10 
13 template <typename T>
14 using Optional = std::optional<T>;
15 
18 static auto& nullopt = std::nullopt;
19 
20 #endif // BITCOIN_OPTIONAL_H
static auto & nullopt
Substitute for C++17 std::nullopt DEPRECATED use std::nullopt in new code.
Definition: optional.h:18
std::optional< T > Optional
Substitute for C++17 std::optional DEPRECATED use std::optional in new code.
Definition: optional.h:14