ΒΆtemplate <typename... CallableTs>
constexpr decltype(auto) makeVisitor(
    CallableTs&&... Callables)

Description

Returns an opaquely-typed Callable object whose operator() overload set is the sum of the operator() overload sets of each CallableT in CallableTs. The type of the returned object derives from each CallableT in CallableTs. The returned object is constructed by invoking the appropriate copy or move constructor of each CallableT, as selected by overload resolution on the corresponding argument to makeVisitor. Example: Example of making a visitor with a lambda which captures a move-only type:

Declared at: llvm/include/llvm/ADT/STLExtras.h:1443

Templates

CallableTs

Parameters

CallableTs&&... Callables