Lines Matching refs:apply
221 EXPECT_EQ(1, absl::apply(Function, std::make_tuple(3, 2))); in TEST()
222 EXPECT_EQ(1, absl::apply(&Function, std::make_tuple(3, 2))); in TEST()
226 EXPECT_EQ(42, absl::apply(Sink, std::make_tuple(absl::make_unique<int>(42)))); in TEST()
230 EXPECT_THAT(absl::apply(Factory, std::make_tuple(42)), in TEST()
234 TEST(ApplyTest, VoidResult) { absl::apply(NoOp, std::tuple<>()); } in TEST()
237 EXPECT_EQ(1, absl::apply(ConstFunctor(), std::make_tuple(3, 2))); in TEST()
242 EXPECT_EQ(1, absl::apply(f, std::make_tuple(3, 2))); in TEST()
243 EXPECT_EQ(1, absl::apply(MutableFunctor(), std::make_tuple(3, 2))); in TEST()
247 EXPECT_EQ(1, absl::apply(std::move(f), std::make_tuple(3, 2))); in TEST()
248 EXPECT_EQ(1, absl::apply(EphemeralFunctor(), std::make_tuple(3, 2))); in TEST()
254 EXPECT_EQ("&", absl::apply(f, std::tuple<>{})); in TEST()
255 EXPECT_EQ("& 42", absl::apply(f, std::make_tuple(" 42"))); in TEST()
257 EXPECT_EQ("const&", absl::apply(cf, std::tuple<>{})); in TEST()
258 EXPECT_EQ("const& 42", absl::apply(cf, std::make_tuple(" 42"))); in TEST()
260 EXPECT_EQ("&&", absl::apply(std::move(f), std::tuple<>{})); in TEST()
262 EXPECT_EQ("&& 42", absl::apply(std::move(f2), std::make_tuple(" 42"))); in TEST()
268 EXPECT_EQ(1, absl::apply(std::cref(cf), std::make_tuple(3, 2))); in TEST()
269 EXPECT_EQ(1, absl::apply(std::ref(cf), std::make_tuple(3, 2))); in TEST()
270 EXPECT_EQ(1, absl::apply(std::ref(mf), std::make_tuple(3, 2))); in TEST()
277 1, absl::apply(&Class::Method, in TEST()
279 EXPECT_EQ(1, absl::apply(&Class::Method, in TEST()
282 1, absl::apply(&Class::Method, std::tuple<Class&, int, int>(*p, 3, 2))); in TEST()
285 1, absl::apply(&Class::ConstMethod, in TEST()
287 EXPECT_EQ(1, absl::apply(&Class::ConstMethod, in TEST()
289 EXPECT_EQ(1, absl::apply(&Class::ConstMethod, in TEST()
292 EXPECT_EQ(1, absl::apply(&Class::ConstMethod, in TEST()
295 EXPECT_EQ(1, absl::apply(&Class::ConstMethod, in TEST()
297 EXPECT_EQ(1, absl::apply(&Class::ConstMethod, in TEST()
300 EXPECT_EQ(1, absl::apply(&Class::Method, in TEST()
302 EXPECT_EQ(1, absl::apply(&Class::ConstMethod, in TEST()
305 1, absl::apply(&Class::ConstMethod, in TEST()
313 42, absl::apply(&Class::member, std::tuple<std::unique_ptr<Class>&>(p))); in TEST()
314 EXPECT_EQ(42, absl::apply(&Class::member, std::tuple<Class&>(*p))); in TEST()
315 EXPECT_EQ(42, absl::apply(&Class::member, std::tuple<Class*>(p.get()))); in TEST()
317 absl::apply(&Class::member, std::tuple<std::unique_ptr<Class>&>(p)) = 42; in TEST()
318 absl::apply(&Class::member, std::tuple<Class*>(p.get())) = 42; in TEST()
319 absl::apply(&Class::member, std::tuple<Class&>(*p)) = 42; in TEST()
321 EXPECT_EQ(42, absl::apply(&Class::member, in TEST()
323 EXPECT_EQ(42, absl::apply(&Class::member, std::tuple<const Class&>(*cp))); in TEST()
325 absl::apply(&Class::member, std::tuple<const Class*>(cp.get()))); in TEST()
332 EXPECT_EQ(42, absl::apply(&FlipFlop::ConstMethod, std::make_tuple(obj))); in TEST()
333 EXPECT_EQ(42, absl::apply(&FlipFlop::member, std::make_tuple(obj))); in TEST()