blob: 06a23e7bfd27cdaf42e36cd47e1dc6df89c7ab20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace vespalib {
/**
* Simple overload lambda composition class. To be replaced by
* standard overload functionality when available. (C++20)
**/
template<class... Ts> struct overload : Ts... { using Ts::operator()...; };
template<class... Ts> overload(Ts...) -> overload<Ts...>;
}
|