Lines Matching refs:ref
46 std::string& ref = *opt; in TEST() local
47 EXPECT_TRUE(ref.empty()); in TEST()
48 ref = "xyz"; in TEST()
159 const auto ref = map.get('d').value_or(std::cref(d)); in TEST() local
160 EXPECT_EQ(ref.get(), 'D'); in TEST()
170 const auto ref = map.get('d').value_or(std::ref(d)); in TEST() local
171 ref.get() = 'D'; in TEST()
250 const auto ref = map.get(2, [](const auto& s) { return s.str[0]; }); in TEST() local
251 ASSERT_TRUE(ref); in TEST()
254 const auto it = map.try_replace(2, 1u, static_cast<char>(std::tolower(*ref))); in TEST()
271 const auto ref = map.get(3); in TEST() local
272 ASSERT_TRUE(ref); in TEST()
275 const auto it = map.try_replace(3, ref->get().str, 2u, 1u); in TEST()
295 const auto ref = map.get(2, [](const auto& s) { return s.str[0]; }); in TEST() local
296 ASSERT_TRUE(ref); in TEST()
299 const auto [it, emplace] = map.emplace_or_replace(2, 1u, static_cast<char>(std::tolower(*ref))); in TEST()
317 const auto ref = map.get(3); in TEST() local
318 ASSERT_TRUE(ref); in TEST()
321 const auto [it, emplace] = map.emplace_or_replace(3, ref->get().str, 2u, 1u); in TEST()