Bitcoin ABC
0.30.5
P2P Digital Currency
src
util
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
8
namespace
variant
{
9
10
template
<
class
... Ts>
struct
overloaded
: Ts... {
11
using
Ts::operator()...;
12
};
13
// explicit deduction guide (not needed as of C++20)
14
template
<
class
... Ts>
overloaded
(Ts...) ->
overloaded
<Ts...>;
15
16
}
// namespace variant
17
18
#endif
// BITCOIN_UTIL_VARIANT_H
variant
Definition:
variant.h:8
variant::overloaded
overloaded(Ts...) -> overloaded< Ts... >
variant::overloaded
Definition:
variant.h:10
Generated on Wed Nov 20 2024 17:55:59 for Bitcoin ABC by
1.9.4