Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
variant.h
Go to the documentation of this file.
1// Copyright (c) 2023 The Bitcoin 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_UTIL_VARIANT_H
6#define BITCOIN_UTIL_VARIANT_H
7
8namespace variant {
9
10template <class... Ts> struct overloaded : Ts... { using Ts::operator()...; };
11// explicit deduction guide (not needed as of C++20)
12template <class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
13
14} // namespace variant
15
16#endif // BITCOIN_UTIL_VARIANT_H