Lines Matching refs:value

29   ValueHolder(int v) : value(v) { }  // NOLINT  in ValueHolder()
30 int value; member
34 return lhs.value == rhs.value; in operator ==()
40 auto add1 = [](const ValueHolder& h) { return h.value + 1; }; in TEST()
47 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST()
48 static_assert(std::is_same<TarefIter, decltype(taref)::pointer>::value, "pointer"); in TEST()
49 static_assert(std::is_same<int, decltype(taref)::reference>::value, "reference"); in TEST()
50 static_assert(std::is_same<ConstTarefIter, decltype(taref)::const_pointer>::value, in TEST()
52 static_assert(std::is_same<int, decltype(taref)::const_reference>::value, "const_reference"); in TEST()
72 ASSERT_EQ(input.front().value + 1, taref.front()); in TEST()
73 ASSERT_EQ(input.back().value + 1, taref.back()); in TEST()
76 ASSERT_EQ(input[i].value + 1, taref[i]); in TEST()
81 auto sub1 = [](ValueHolder& h) { return h.value - 1; }; in TEST()
87 static_assert(std::is_same<void, decltype(taref)::const_iterator>::value, "const_iterator"); in TEST()
88 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST()
89 static_assert(std::is_same<TarefIter, decltype(taref)::pointer>::value, "pointer"); in TEST()
90 static_assert(std::is_same<int, decltype(taref)::reference>::value, "reference"); in TEST()
91 static_assert(std::is_same<void, decltype(taref)::const_pointer>::value, "const_pointer"); in TEST()
92 static_assert(std::is_same<void, decltype(taref)::const_reference>::value, "const_reference"); in TEST()
104 ASSERT_EQ(input.front().value - 1, taref.front()); in TEST()
105 ASSERT_EQ(input.back().value - 1, taref.back()); in TEST()
108 ASSERT_EQ(input[i].value - 1, taref[i]); in TEST()
114 int& operator()(ValueHolder& h) const { return h.value; } in TEST()
115 const int& operator()(const ValueHolder& h) const { return h.value; } in TEST()
122 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST()
123 static_assert(std::is_same<int*, decltype(taref)::pointer>::value, "pointer"); in TEST()
124 static_assert(std::is_same<int&, decltype(taref)::reference>::value, "reference"); in TEST()
125 static_assert(std::is_same<const int*, decltype(taref)::const_pointer>::value, "const_pointer"); in TEST()
126 static_assert(std::is_same<const int&, decltype(taref)::const_reference>::value, in TEST()
147 ASSERT_EQ(input.front().value, taref.front()); in TEST()
148 ASSERT_EQ(input.back().value, taref.back()); in TEST()
151 ASSERT_EQ(input[i].value, taref[i]); in TEST()
166 static_assert(std::is_same<int, decltype(ctaref)::value_type>::value, "value_type"); in TEST()
167 static_assert(std::is_same<const int*, decltype(ctaref)::pointer>::value, "pointer"); in TEST()
168 static_assert(std::is_same<const int&, decltype(ctaref)::reference>::value, "reference"); in TEST()
169 static_assert(std::is_same<const int*, decltype(ctaref)::const_pointer>::value, "const_pointer"); in TEST()
170 static_assert(std::is_same<const int&, decltype(ctaref)::const_reference>::value, in TEST()
191 ASSERT_EQ(cinput.front().value, ctaref.front()); in TEST()
192 ASSERT_EQ(cinput.back().value, ctaref.back()); in TEST()
195 ASSERT_EQ(cinput[i].value, ctaref[i]); in TEST()