Lines Matching refs:IfAnyOf
940 TEST(Variant, IfAnyOf) { in TEST() argument
946 EXPECT_TRUE(IfAnyOf<int>::Get(&v, &b)); in TEST()
950 EXPECT_TRUE((IfAnyOf<int, float>::Get(&v, &f))); in TEST()
959 EXPECT_TRUE(IfAnyOf<int>::Get(&v, &b)); in TEST()
963 EXPECT_TRUE((IfAnyOf<int, float>::Get(&v, &f))); in TEST()
972 EXPECT_TRUE(IfAnyOf<int>::Call(&v, [&b](const auto& value) { b = value; })); in TEST()
977 IfAnyOf<int, float>::Call(&v, [&f](const auto& value) { f = value; }))); in TEST()
988 EXPECT_TRUE(IfAnyOf<std::unique_ptr<int>>::Take(&v, &u)); in TEST()
1003 EXPECT_TRUE(IfAnyOf<std::unique_ptr<DerivedType>>::Take(&v, &u)); in TEST()
1016 EXPECT_TRUE(IfAnyOf<std::unique_ptr<int>>::Call( in TEST()
1028 EXPECT_FALSE((IfAnyOf<int, float>::Get(&v, &f))); in TEST()
1037 EXPECT_TRUE(IfAnyOf<std::string>::Swap(&v, &s)); in TEST()
1048 EXPECT_TRUE((IfAnyOf<std::string, const char*>::Take(&v, &s))); in TEST()
1056 EXPECT_TRUE((IfAnyOf<std::string, const char*>::Take(&v, &s))); in TEST()
1066 EXPECT_FALSE((IfAnyOf<std::string, const char*>::Take(&v, &s))); in TEST()
1075 EXPECT_FALSE(IfAnyOf<>::Take(&v, &s)); in TEST()