Celeritas
0.5.0-56+6b053cd
|
Apply a functor to a universe tracker of unknown type. More...
#include <TrackerVisitor.hh>
Public Types | |
Type aliases | |
using | ParamsRef = NativeCRef< OrangeParamsData > |
Public Member Functions | |
CELER_FUNCTION | TrackerVisitor (ParamsRef const ¶ms) |
Construct from ORANGE params. | |
template<class F > | |
decltype(auto) CELER_FUNCTION | operator() (F &&func, UniverseId id) |
Apply a functor to a universe tracker of unknown type.
An instance of this class is like std::visit
but accepting a UniverseId rather than a std::variant
.
Example: