For historical reasons we want to support use that looks like a function call:
Declared in <absl/functional/overload.h>
constexpr
explicit
Overload(T... ts);
absl::Overload(lambda_1, lambda_2)
This works automatically in C++20 because we have support for parenthesized aggregate initialization. Before then we must provide a constructor that makes this work.
| Name | Description |
|---|---|
| ts | The functors to combine into a single overload set. |