blob: 20a3a8499261ba6df6ca4e809149cc57c2e2bdca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright Vespa.ai. 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...>;
}
|