match_eggs.hpp File Reference
#include <atria/variant/variant_types_eggs.hpp>
#include <atria/variant/visitor.hpp>
#include <ableton/build_system/Warnings.hpp>
#include <eggs/variant.hpp>
#include <utility>

Go to the source code of this file.

Namespaces

 atria
 C++ amazing templates and reusable implementations awesomeness.
 
 atria::variant
 Tools for better usability of boost::variant, eggs::variant and potentially other implementations of sum types.
 

Typedefs

using eggs_t = meta::copy_decay_t< VariantT, meta::unpack< eggs::variant, variant_types_t< estd::decay_t< VariantT > > > >
 

Functions

template<typename VariantT , typename... FnTs>
auto match (VariantT &&variant, FnTs &&...fns) -> estd::enable_if_t< detail::is_eggs_variant< estd::decay_t< VariantT > >
 Destructure a eggs::variant with a given set of functions. More...
 
Fork me on GitHub