Lines Matching refs:IfAnyOf
932 TEST(Variant, IfAnyOf) { in TEST() argument
938 EXPECT_TRUE(IfAnyOf<int>::Get(&v, &b)); in TEST()
942 EXPECT_TRUE((IfAnyOf<int, float>::Get(&v, &f))); in TEST()
951 EXPECT_TRUE(IfAnyOf<int>::Get(&v, &b)); in TEST()
955 EXPECT_TRUE((IfAnyOf<int, float>::Get(&v, &f))); in TEST()
964 EXPECT_TRUE(IfAnyOf<int>::Call(&v, [&b](const auto& value) { b = value; })); in TEST()
969 IfAnyOf<int, float>::Call(&v, [&f](const auto& value) { f = value; }))); in TEST()
980 EXPECT_TRUE(IfAnyOf<std::unique_ptr<int>>::Take(&v, &u)); in TEST()
995 EXPECT_TRUE(IfAnyOf<std::unique_ptr<DerivedType>>::Take(&v, &u)); in TEST()
1008 EXPECT_TRUE(IfAnyOf<std::unique_ptr<int>>::Call( in TEST()
1020 EXPECT_FALSE((IfAnyOf<int, float>::Get(&v, &f))); in TEST()
1029 EXPECT_TRUE(IfAnyOf<std::string>::Swap(&v, &s)); in TEST()
1040 EXPECT_TRUE((IfAnyOf<std::string, const char*>::Take(&v, &s))); in TEST()
1048 EXPECT_TRUE((IfAnyOf<std::string, const char*>::Take(&v, &s))); in TEST()
1058 EXPECT_FALSE((IfAnyOf<std::string, const char*>::Take(&v, &s))); in TEST()
1067 EXPECT_FALSE(IfAnyOf<>::Take(&v, &s)); in TEST()