visitor_t< ReturnType, Fns > Class Template Reference
General visitor based on a set of function objects. More...
#include <atria/variant/visitor.hpp>
Public Types | |
| using | result_type = ReturnType |
Public Member Functions | |
| visitor_t (Fns &&...fns) | |
| template<typename T , typename U = ReturnType> | |
| auto | operator() (T &&x) -> estd::enable_if_t< !std::is_void< decltype(impl_(std::forward< T >(x)))> |
| template<typename T , typename U = ReturnType> | |
| auto | operator() (T &&x) -> estd::enable_if_t< std::is_void< decltype(impl_(std::forward< T >(x)))> |
Public Attributes | |
| ReturnType | |
| &&!std | ReturnType |
Detailed Description
template<typename ReturnType, typename... Fns>
class atria::variant::visitor_t< ReturnType, Fns >
General visitor based on a set of function objects.
Definition at line 83 of file visitor.hpp.
Member Data Documentation
| ReturnType |
Initial value:
{
return impl_(std::forward<T>(x))
Definition at line 100 of file visitor.hpp.
| && !std ReturnType |
Initial value:
{
return impl_(std::forward<T>(x)), meta::from_void{}
Definition at line 110 of file visitor.hpp.
The documentation for this class was generated from the following file:
- src/atria/variant/visitor.hpp

1.8.10