otherwise_t< Fn, ReturnType > Struct Template Reference

Wraps a functor such that it has a fixed return value. More...

#include <atria/variant/visitor.hpp>

Public Types

using result_type = ReturnType
 

Public Member Functions

 otherwise_t (Fn &&fn)
 
template<typename... Args>
result_type operator() (Args &&...args)
 

Detailed Description

template<typename Fn, typename ReturnType = void>
struct atria::variant::otherwise_t< Fn, ReturnType >

Wraps a functor such that it has a fixed return value.

Can be use to disambiguate cases of a variant visitor.

Definition at line 120 of file visitor.hpp.


The documentation for this struct was generated from the following file:
Fork me on GitHub