PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
pbat::common::Overloaded< Ts > Struct Template Reference

C++20 feature to allow multiple inheritance of operator() for lambdas. More...

#include <Overloaded.h>

Inheritance diagram for pbat::common::Overloaded< Ts >:

Detailed Description

template<class... Ts>
struct pbat::common::Overloaded< Ts >

C++20 feature to allow multiple inheritance of operator() for lambdas.

Particularly useful for std::visit with std::variant. See example

Template Parameters
...TsVariadic template parameter pack for the types to inherit from.

The documentation for this struct was generated from the following file: