Lines Matching refs:variant
30 bool foo(const boost::variant<A, B>& ) { in foo()
34 bool foo(const boost::variant<C, D>& ) { in foo()
42 boost::variant<B, A> v; in test_overload_selection_variant_constructor()
59 struct assignment_tester: boost::variant<C, D>, boost::variant<B, A> {
60 using boost::variant<B, A>::operator=;
61 using boost::variant<C, D>::operator=;
68 const int which0 = static_cast< boost::variant<B, A>& >(tester).which(); in test_overload_selection_variant_assignment()
71 boost::variant<A, B> b; in test_overload_selection_variant_assignment()
74 const int which1 = static_cast< boost::variant<B, A>& >(tester).which(); in test_overload_selection_variant_assignment()
80 typedef boost::variant<int> my_variant;
94 struct X: boost::variant< int > {};
95 class V1: public boost::variant<float,double> {};
97 struct AB: boost::variant<A, B> {};
102 boost::variant<X> y(x); in test_derived_from_variant_construction()
106 boost::variant<V1, std::string> v2 = V1(); in test_derived_from_variant_construction()
111 boost::variant<AB, C> ab_c(ab); in test_derived_from_variant_construction()
114 boost::variant<A, B> a_b(ab); in test_derived_from_variant_construction()
117 boost::variant<B, C, A> b_c_a1(static_cast<boost::variant<A, B>& >(ab)); in test_derived_from_variant_construction()
129 boost::variant<X> y; in test_derived_from_variant_assignment()
134 boost::variant<V1, std::string> v2; in test_derived_from_variant_assignment()
140 boost::variant<AB, C> ab_c; in test_derived_from_variant_assignment()
144 boost::variant<A, B> a_b; in test_derived_from_variant_assignment()
148 boost::variant<B, C, A> b_c_a1; in test_derived_from_variant_assignment()
149 b_c_a1 = static_cast<boost::variant<A, B>& >(ab); in test_derived_from_variant_assignment()
165 boost::variant<