Searched refs:TryGet (Results 1 – 3 of 3) sorted by relevance
152 T TryGet(typename std::decay<T>::type const& def_val) const { in TryGet() function161 T TryGet() const { in TryGet() function162 return TryGet<T>(typename std::decay<T>::type()); in TryGet()
254 TEST(Any, TryGet) { in TEST() argument257 EXPECT_EQ("dummy", val.TryGet<std::string>("dummy")); in TEST()258 EXPECT_EQ(12, val.TryGet<int>(17)); in TEST()259 EXPECT_EQ(17, empty.TryGet<int>(17)); in TEST()
28 return it->second.TryGet<T>(); in GetVariantValueOrDefault()