Lines Matching refs:std

41   std::vector<ValueHolder> input({ 7, 6, 4, 0 });  in TEST()
42 std::vector<int> output; 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()
54 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST()
55 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST()
58 std::copy(taref.cbegin(), taref.cend(), std::back_inserter(output)); in TEST()
59 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST()
62 std::copy(taref.rbegin(), taref.rend(), std::back_inserter(output)); in TEST()
63 ASSERT_EQ(std::vector<int>({ 1, 5, 7, 8 }), output); in TEST()
66 std::copy(taref.crbegin(), taref.crend(), std::back_inserter(output)); in TEST()
67 ASSERT_EQ(std::vector<int>({ 1, 5, 7, 8 }), output); in TEST()
82 std::vector<ValueHolder> input({ 4, 4, 5, 7, 10 }); in TEST()
83 std::vector<int> output; 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()
94 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST()
95 ASSERT_EQ(std::vector<int>({ 3, 3, 4, 6, 9 }), output); in TEST()
98 std::copy(taref.rbegin(), taref.rend(), std::back_inserter(output)); in TEST()
99 ASSERT_EQ(std::vector<int>({ 9, 6, 4, 3, 3 }), output); in TEST()
118 std::vector<ValueHolder> input({ 1, 0, 1, 0, 3, 1 }); in TEST()
119 std::vector<int> output; 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()
129 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST()
130 ASSERT_EQ(std::vector<int>({ 1, 0, 1, 0, 3, 1 }), output); in TEST()
133 std::copy(taref.cbegin(), taref.cend(), std::back_inserter(output)); in TEST()
134 ASSERT_EQ(std::vector<int>({ 1, 0, 1, 0, 3, 1 }), output); in TEST()
137 std::copy(taref.rbegin(), taref.rend(), std::back_inserter(output)); in TEST()
138 ASSERT_EQ(std::vector<int>({ 1, 3, 0, 1, 0, 1 }), output); in TEST()
141 std::copy(taref.crbegin(), taref.crend(), std::back_inserter(output)); in TEST()
142 ASSERT_EQ(std::vector<int>({ 1, 3, 0, 1, 0, 1 }), output); in TEST()
155 std::vector<int> transform_input({ 24, 37, 11, 71 }); in TEST()
156 std::vector<ValueHolder> transformed(transform_input.size(), 0); in TEST()
161 ASSERT_EQ(std::vector<ValueHolder>({ 24, 37, 11, 71 }), transformed); in TEST()
163 const std::vector<ValueHolder>& cinput = input; 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()
173 std::copy(ctaref.begin(), ctaref.end(), std::back_inserter(output)); in TEST()
174 ASSERT_EQ(std::vector<int>({ 1, 0, 1, 0, 3, 1 }), output); in TEST()
177 std::copy(ctaref.cbegin(), ctaref.cend(), std::back_inserter(output)); in TEST()
178 ASSERT_EQ(std::vector<int>({ 1, 0, 1, 0, 3, 1 }), output); in TEST()
181 std::copy(ctaref.rbegin(), ctaref.rend(), std::back_inserter(output)); in TEST()
182 ASSERT_EQ(std::vector<int>({ 1, 3, 0, 1, 0, 1 }), output); in TEST()
185 std::copy(ctaref.crbegin(), ctaref.crend(), std::back_inserter(output)); in TEST()
186 ASSERT_EQ(std::vector<int>({ 1, 3, 0, 1, 0, 1 }), output); in TEST()