Lines Matching refs:get

41     ASSERT_NOT_NOEXCEPT(std::get<0>(v));  in test_const_lvalue_get()
42 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), const int &); in test_const_lvalue_get()
43 static_assert(std::get<0>(v) == 42, ""); in test_const_lvalue_get()
48 ASSERT_NOT_NOEXCEPT(std::get<0>(v)); in test_const_lvalue_get()
49 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), const int &); in test_const_lvalue_get()
50 assert(std::get<0>(v) == 42); in test_const_lvalue_get()
55 ASSERT_NOT_NOEXCEPT(std::get<1>(v)); in test_const_lvalue_get()
56 ASSERT_SAME_TYPE(decltype(std::get<1>(v)), const long &); in test_const_lvalue_get()
57 static_assert(std::get<1>(v) == 42, ""); in test_const_lvalue_get()
62 ASSERT_NOT_NOEXCEPT(std::get<1>(v)); in test_const_lvalue_get()
63 ASSERT_SAME_TYPE(decltype(std::get<1>(v)), const long &); in test_const_lvalue_get()
64 assert(std::get<1>(v) == 42); in test_const_lvalue_get()
72 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), int &); in test_const_lvalue_get()
73 assert(&std::get<0>(v) == &x); in test_const_lvalue_get()
79 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), int &); in test_const_lvalue_get()
80 assert(&std::get<0>(v) == &x); in test_const_lvalue_get()
86 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), const int &); in test_const_lvalue_get()
87 assert(&std::get<0>(v) == &x); in test_const_lvalue_get()
96 ASSERT_NOT_NOEXCEPT(std::get<0>(v)); in test_lvalue_get()
97 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), int &); in test_lvalue_get()
98 assert(std::get<0>(v) == 42); in test_lvalue_get()
103 ASSERT_SAME_TYPE(decltype(std::get<1>(v)), const long &); in test_lvalue_get()
104 assert(std::get<1>(v) == 42); in test_lvalue_get()
112 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), int &); in test_lvalue_get()
113 assert(&std::get<0>(v) == &x); in test_lvalue_get()
119 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), const int &); in test_lvalue_get()
120 assert(&std::get<0>(v) == &x); in test_lvalue_get()
126 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), int &); in test_lvalue_get()
127 assert(&std::get<0>(v) == &x); in test_lvalue_get()
133 ASSERT_SAME_TYPE(decltype(std::get<0>(v)), const int &); in test_lvalue_get()
134 assert(&std::get<0>(v) == &x); in test_lvalue_get()
143 ASSERT_NOT_NOEXCEPT(std::get<0>(std::move(v))); in test_rvalue_get()
144 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), int &&); in test_rvalue_get()
145 assert(std::get<0>(std::move(v)) == 42); in test_rvalue_get()
150 ASSERT_SAME_TYPE(decltype(std::get<1>(std::move(v))), const long &&); in test_rvalue_get()
151 assert(std::get<1>(std::move(v)) == 42); in test_rvalue_get()
159 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), int &); in test_rvalue_get()
160 assert(&std::get<0>(std::move(v)) == &x); in test_rvalue_get()
166 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), const int &); in test_rvalue_get()
167 assert(&std::get<0>(std::move(v)) == &x); in test_rvalue_get()
173 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), int &&); in test_rvalue_get()
174 int &&xref = std::get<0>(std::move(v)); in test_rvalue_get()
181 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), const int &&); in test_rvalue_get()
182 const int &&xref = std::get<0>(std::move(v)); in test_rvalue_get()
192 ASSERT_NOT_NOEXCEPT(std::get<0>(std::move(v))); in test_const_rvalue_get()
193 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), const int &&); in test_const_rvalue_get()
194 assert(std::get<0>(std::move(v)) == 42); in test_const_rvalue_get()
199 ASSERT_SAME_TYPE(decltype(std::get<1>(std::move(v))), const long &&); in test_const_rvalue_get()
200 assert(std::get<1>(std::move(v)) == 42); in test_const_rvalue_get()
208 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), int &); in test_const_rvalue_get()
209 assert(&std::get<0>(std::move(v)) == &x); in test_const_rvalue_get()
215 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), const int &); in test_const_rvalue_get()
216 assert(&std::get<0>(std::move(v)) == &x); in test_const_rvalue_get()
222 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), int &&); in test_const_rvalue_get()
223 int &&xref = std::get<0>(std::move(v)); in test_const_rvalue_get()
230 ASSERT_SAME_TYPE(decltype(std::get<0>(std::move(v))), const int &&); in test_const_rvalue_get()
231 const int &&xref = std::get<0>(std::move(v)); in test_const_rvalue_get()
253 TEST_IGNORE_NODISCARD std::get<Idx::value>(std::forward<decltype(v)>(v)); in test_throws_for_all_value_categories()