QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
Loading...
Searching...
No Matches
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
6namespace 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>
16
17}
18
19#endif