ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::overloaded< Ts > Struct Template Reference

Helper struct that can turn a set of lambdas into a single entity with overloaded call operator. More...

#include <Acts/Utilities/Helpers.hpp>

Inheritance diagram for Acts::overloaded< Ts >:
[legend]
Collaboration diagram for Acts::overloaded< Ts >:
[legend]

Detailed Description

template<class... Ts>
struct Acts::overloaded< Ts >

Helper struct that can turn a set of lambdas into a single entity with overloaded call operator.

This can be useful for example in a std::visit call.

std::visit(overloaded{
[](const int& i) { std::cout << "int: " << i << std::endl; },
[](const std::string& s) { std::cout << "string: " << s << std::endl; },
}, variant);
Helper struct that can turn a set of lambdas into a single entity with overloaded call operator.
Definition Helpers.hpp:239