For historical reasons we want to support use that looks like a function call:

Synopsis

Declared in <absl/functional/overload.h>

constexpr
explicit
Overload(T... ts);

Description

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.

Parameters

Name

Description

ts

The functors to combine into a single overload set.

Created with MrDocs