Honeycomb  0.1
Component-Model Framework
Public Types | Public Member Functions | List of all members
honey::overload_< Func, Funcs... > Struct Template Reference

An overloaded visitor functor. More...

#include <Variant.h>

Inheritance diagram for honey::overload_< Func, Funcs... >:
Inheritance graph
[legend]
Collaboration diagram for honey::overload_< Func, Funcs... >:
Collaboration graph
[legend]

Public Types

typedef overload_< Funcs... > Super
 

Public Member Functions

 overload_ (Func &&f, Funcs &&...fs)
 

Detailed Description

template<class Func, class... Funcs>
struct honey::overload_< Func, Funcs... >

An overloaded visitor functor.

See also
overload() to create.

Example:

int res = variant.visit<int>(overload
(
    [](char) { return 0; },
    [](String) { return 1; }
));

Member Typedef Documentation

template<class Func , class... Funcs>
typedef overload_<Funcs...> honey::overload_< Func, Funcs... >::Super

Constructor & Destructor Documentation

template<class Func , class... Funcs>
honey::overload_< Func, Funcs... >::overload_ ( Func &&  f,
Funcs &&...  fs 
)
inline

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