PIVX Core  5.6.99
P2P Digital Currency
optional.h
Go to the documentation of this file.
1 // Copyright (c) 2017 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 PIVX_OPTIONAL_H
6 #define PIVX_OPTIONAL_H
7 
8 #include <boost/optional.hpp>
9 
11 template <typename T>
12 using Optional = boost::optional<T>;
13 
15 static auto& nullopt = boost::none;
16 
17 #endif // PIVX_OPTIONAL_H
boost::optional< T > Optional
Substitute for C++17 std::optional.
Definition: optional.h:12