#ifndef SPROUT_VARIANT_GET_HPP #define SPROUT_VARIANT_GET_HPP #include #include #include #include namespace sprout { // // get // template SPROUT_CONSTEXPR U const& get(sprout::variant const& operand) { return operand.template get(); } template U& get(sprout::variant& operand) { return operand.template get(); } template SPROUT_CONSTEXPR typename sprout::tuples::tuple_element< I, sprout::variant >::type const& get(sprout::variant const& operand) { return operand.template get_at(); } template typename sprout::tuples::tuple_element< I, sprout::variant >::type& get(sprout::variant& operand) { return operand.template get_at(); } } // namespace sprout #endif // #ifndef SPROUT_VARIANT_GET_HPP