Lines Matching refs:v3
73 variant<int> v3( 2 ); in main() local
74 BOOST_TEST_EQ( get<0>(v3), 2 ); in main()
76 swap( v, v3 ); in main()
78 BOOST_TEST_EQ( get<0>(v3), 1 ); in main()
100 variant<int, float> v3( 3.14f ); in main() local
102 BOOST_TEST_EQ( v3.index(), 1 ); in main()
103 BOOST_TEST_EQ( get<1>(v3), 3.14f ); in main()
105 swap( v, v3 ); in main()
110 BOOST_TEST_EQ( v3.index(), 0 ); in main()
111 BOOST_TEST_EQ( get<0>(v3), 1 ); in main()
146 variant<int, int, float, std::string> v3( 3.14f ); in main() local
148 BOOST_TEST_EQ( v3.index(), 2 ); in main()
149 BOOST_TEST_EQ( get<2>(v3), 3.14f ); in main()
151 swap( v, v3 ); in main()
156 BOOST_TEST_EQ( v3.index(), 1 ); in main()
157 BOOST_TEST_EQ( get<1>(v3), 1 ); in main()
218 variant<X1, X2> v3( in_place_index_t<1>{}, 2 ); in main() local
220 BOOST_TEST_EQ( v3.index(), 1 ); in main()
221 BOOST_TEST_EQ( get<1>(v3).v, 2 ); in main()
223 swap( v, v3 ); in main()
228 BOOST_TEST_EQ( v3.index(), 0 ); in main()
229 BOOST_TEST_EQ( get<0>(v3).v, 1 ); in main()