Lines Matching refs:variant
68 variant<int> v; in main()
71 variant<int> v2( 1 ); in main()
76 variant<int> const v3( 2 ); in main()
83 variant<int, float> v; in main()
87 variant<int, float> v2( 1 ); in main()
93 variant<int, float> v3( 3.14f ); in main()
99 variant<int, float> const v4( 3.15f ); in main()
107 variant<int, int, float, std::string> v; in main()
111 variant<int, int, float, std::string> v2( in_place_index_t<1>{}, 1 ); in main()
117 variant<int, int, float, std::string> v3( 3.14f ); in main()
123 variant<int, int, float, std::string> const v4( 3.15f ); in main()
129 variant<int, int, float, std::string> v5( "s1" ); in main()
135 variant<int, int, float, std::string> const v6( "s2" ); in main()
143 variant<X1, X2> v; in main()
147 variant<X1, X2> v2( X1{1} ); in main()
153 variant<X1, X2> v3( in_place_index_t<1>{}, 2 ); in main()
159 variant<X1, X2> const v4( in_place_index_t<1>{}, 3 ); in main()
165 variant<X1, X2> const v5( in_place_index_t<0>{}, 4 ); in main()
173 BOOST_TEST_TRAIT_TRUE((std::is_nothrow_copy_assignable<variant<int>>)); in main()
174 BOOST_TEST_TRAIT_TRUE((std::is_nothrow_copy_assignable<variant<int, int>>)); in main()
175 BOOST_TEST_TRAIT_TRUE((std::is_nothrow_copy_assignable<variant<int, float>>)); in main()
176 BOOST_TEST_TRAIT_TRUE((std::is_nothrow_copy_assignable<variant<int, int, float, float>>)); in main()
178 BOOST_TEST_TRAIT_FALSE((std::is_nothrow_copy_assignable<variant<X1>>)); in main()
179 BOOST_TEST_TRAIT_FALSE((std::is_nothrow_copy_assignable<variant<X1, int>>)); in main()
180 BOOST_TEST_TRAIT_FALSE((std::is_nothrow_copy_assignable<variant<X1, int, float>>)); in main()
182 BOOST_TEST_TRAIT_FALSE((std::is_nothrow_copy_assignable<variant<int, X1>>)); in main()
183 BOOST_TEST_TRAIT_FALSE((std::is_nothrow_copy_assignable<variant<int, int, X1>>)); in main()
185 BOOST_TEST_TRAIT_FALSE((std::is_nothrow_copy_assignable<variant<X1, X2>>)); in main()
186 BOOST_TEST_TRAIT_FALSE((std::is_nothrow_copy_assignable<variant<X1, X2, int, int>>)); in main()
188 BOOST_TEST_TRAIT_TRUE((std::is_copy_assignable<variant<X1, X2>>)); in main()
189 BOOST_TEST_TRAIT_FALSE((std::is_copy_assignable<variant<int const>>)); in main()
190 BOOST_TEST_TRAIT_FALSE((std::is_copy_assignable<variant<int, float, Y>>)); in main()