userver
C++ Async Framework
Loading...
Searching...
No Matches
overloaded.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/utils/overloaded.hpp
4
/// @brief @copybrief utils::Overloaded
5
6
USERVER_NAMESPACE_BEGIN
7
8
namespace
utils
{
9
10
/// @ingroup userver_universal
11
///
12
/// @brief Utility to define std::variant visitors in a simple way
13
template
<
class
... Ts>
14
struct
Overloaded
: Ts... {
// NOLINT(fuchsia-multiple-inheritance)
15
using
Ts::operator()...;
16
};
17
18
template
<
class
... Ts>
19
Overloaded(Ts...) ->
Overloaded
<Ts...>;
20
21
}
// namespace utils
22
23
USERVER_NAMESPACE_END
userver
utils
overloaded.hpp
Generated on Wed Oct 4 2023 12:19:57 for userver by
Doxygen
1.9.8