Lines Matching refs:view
57 function_ref<int(int)> view = [](int i) { return i + 1; }; in TEST() local
58 EXPECT_EQ(1, view(0)); in TEST()
59 EXPECT_EQ(-1, view(-2)); in TEST()
75 function_ref<int(int)> view = [](int i) { return i + 1; }; in TEST() local
76 EXPECT_EQ(1, view(0)); in TEST()
77 view = [](int i) { return i - 1; }; in TEST()
78 EXPECT_EQ(0, view(1)); in TEST()
80 function_ref<int(int)> view2 = view; in TEST()
81 EXPECT_EQ(view(10), view2(10)); in TEST()
83 view = view2; in TEST()
84 EXPECT_EQ(view(10), view2(10)); in TEST()