QuantLib
: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
Loading...
Searching...
No Matches
ql
utilities
variants.hpp
Go to the documentation of this file.
1
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3
#ifndef quantlib_utilities_variants_hpp
4
#define quantlib_utilities_variants_hpp
5
6
namespace
QuantLib::detail
{
7
8
// Helper type for use with std::visit.
9
template
<
class
... Ts>
10
struct
variant_visitor
:
Ts
... {
11
using
Ts::operator()...;
12
};
13
14
template
<
class
...
Ts
>
15
variant_visitor
(
Ts
...) ->
variant_visitor
<
Ts
...>;
16
17
}
18
19
#endif
QuantLib::detail::Ts
QuantLib::detail
Definition:
cashflowvectors.cpp:32
QuantLib::detail::variant_visitor
Definition:
variants.hpp:10
Generated by
Doxygen
1.9.5