mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-05 10:17:30 -05:00
fa0074e2d8
-BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
20 lines
583 B
C++
20 lines
583 B
C++
// Copyright (c) 2017-2020 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_OPTIONAL_H
|
|
#define BITCOIN_OPTIONAL_H
|
|
|
|
#include <optional>
|
|
#include <utility>
|
|
|
|
//! Substitute for C++17 std::optional
|
|
//! DEPRECATED use std::optional in new code.
|
|
template <typename T>
|
|
using Optional = std::optional<T>;
|
|
|
|
//! Substitute for C++17 std::nullopt
|
|
//! DEPRECATED use std::nullopt in new code.
|
|
static auto& nullopt = std::nullopt;
|
|
|
|
#endif // BITCOIN_OPTIONAL_H
|