match_boost.hpp File Reference
#include <atria/variant/variant_types_boost.hpp>
#include <atria/variant/visitor.hpp>
#include <ableton/build_system/Warnings.hpp>
#include <boost/variant/apply_visitor.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. | |
Functions | |
template<typename VariantT , typename... FnTs> | |
auto | match (VariantT &variant, FnTs &&...fns) -> estd::enable_if_t< detail::is_boost_variant< estd::decay_t< VariantT > > |
Destructure a boost::variant with a given set of functions. More... | |
template<typename VariantT , typename... FnTs> | |
auto | match (const VariantT &variant, FnTs &&...fns) -> estd::enable_if_t< detail::is_boost_variant< estd::decay_t< VariantT > > |