CppWAMP
C++11 client library for the WAMP protocol
visitor.hpp File Reference

Contains facilities for applying static visitors to Variant objects . More...

#include <cassert>
#include <type_traits>
#include <utility>
#include "api.hpp"

Go to the source code of this file.

Classes

class  wamp::Visitor< TResult >
 Convenience base class used to meet the result type requirements of a StaticVisitor. More...
 

Namespaces

 wamp
 

Typedefs

Non-member Visitation Functions (in visitor.hpp)
template<typename TVisitor >
using wamp::ResultTypeOf = typename std::remove_reference< TVisitor >::type::Result
 Metafunction used to obtain the return type of a static visitor.
 
Non-member Visitation Functions (in visitor.hpp)
template<typename TVisitor >
using wamp::ResultTypeOf = typename std::remove_reference< TVisitor >::type::Result
 Metafunction used to obtain the return type of a static visitor.
 

Detailed Description

Contains facilities for applying static visitors to Variant objects .


Class Documentation

◆ wamp::Visitor

class wamp::Visitor

template<typename TResult = void>
class wamp::Visitor< TResult >

Convenience base class used to meet the result type requirements of a StaticVisitor.

Class Members
typedef TResult Result The return type for all of the visitor's dispatch functions.