Lines Matching refs:std

42   std::vector<ValueHolder> input({ 7, 6, 4, 0 });  in TEST()
43 std::vector<int> output; in TEST()
48 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST()
49 static_assert(std::is_same<TarefIter, decltype(taref)::pointer>::value, "pointer"); in TEST()
50 static_assert(std::is_same<int, decltype(taref)::reference>::value, "reference"); in TEST()
51 static_assert(std::is_same<ConstTarefIter, decltype(taref)::const_pointer>::value, in TEST()
53 static_assert(std::is_same<int, decltype(taref)::const_reference>::value, "const_reference"); in TEST()
55 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST()
56 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST()
59 std::copy(taref.cbegin(), taref.cend(), std::back_inserter(output)); in TEST()
60 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST()
63 std::copy(taref.rbegin(), taref.rend(), std::back_inserter(output)); in TEST()
64 ASSERT_EQ(std::vector<int>({ 1, 5, 7, 8 }), output); in TEST()
67 std::copy(taref.crbegin(), taref.crend(), std::back_inserter(output)); in TEST()
68 ASSERT_EQ(std::vector<int>({ 1, 5, 7, 8 }), output); in TEST()
83 std::vector<ValueHolder> input({ 4, 4, 5, 7, 10 }); in TEST()
84 std::vector<int> output; in TEST()
88 static_assert(std::is_same<void, decltype(taref)::const_iterator>::value, "const_iterator"); in TEST()
89 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST()
90 static_assert(std::is_same<TarefIter, decltype(taref)::pointer>::value, "pointer"); in TEST()
91 static_assert(std::is_same<int, decltype(taref)::reference>::value, "reference"); in TEST()
92 static_assert(std::is_same<void, decltype(taref)::const_pointer>::value, "const_pointer"); in TEST()
93 static_assert(std::is_same<void, decltype(taref)::const_reference>::value, "const_reference"); in TEST()
95 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST()
96 ASSERT_EQ(std::vector<int>({ 3, 3, 4, 6, 9 }), output); in TEST()
99 std::copy(taref.rbegin(), taref.rend(), std::back_inserter(output)); in TEST()
100 ASSERT_EQ(std::vector<int>({ 9, 6, 4, 3, 3 }), output); in TEST()
119 std::vector<ValueHolder> input({ 1, 0, 1, 0, 3, 1 }); in TEST()
120 std::vector<int> output; in TEST()
123 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST()
124 static_assert(std::is_same<int*, decltype(taref)::pointer>::value, "pointer"); in TEST()
125 static_assert(std::is_same<int&, decltype(taref)::reference>::value, "reference"); in TEST()
126 static_assert(std::is_same<const int*, decltype(taref)::const_pointer>::value, "const_pointer"); in TEST()
127 static_assert(std::is_same<const int&, decltype(taref)::const_reference>::value, in TEST()
130 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST()
131 ASSERT_EQ(std::vector<int>({ 1, 0, 1, 0, 3, 1 }), output); in TEST()
134 std::copy(taref.cbegin(), taref.cend(), std::back_inserter(output)); in TEST()
135 ASSERT_EQ(std::vector<int>({ 1, 0, 1, 0, 3, 1 }), output); in TEST()
138 std::copy(taref.rbegin(), taref.rend(), std::back_inserter(output)); in TEST()
139 ASSERT_EQ(std::vector<int>({ 1, 3, 0, 1, 0, 1 }), output); in TEST()
142 std::copy(taref.crbegin(), taref.crend(), std::back_inserter(output)); in TEST()
143 ASSERT_EQ(std::vector<int>({ 1, 3, 0, 1, 0, 1 }), output); in TEST()
156 std::vector<int> transform_input({ 24, 37, 11, 71 }); in TEST()
157 std::vector<ValueHolder> transformed(transform_input.size(), 0); in TEST()
162 ASSERT_EQ(std::vector<ValueHolder>({ 24, 37, 11, 71 }), transformed); in TEST()
164 const std::vector<ValueHolder>& cinput = input; in TEST()
167 static_assert(std::is_same<int, decltype(ctaref)::value_type>::value, "value_type"); in TEST()
168 static_assert(std::is_same<const int*, decltype(ctaref)::pointer>::value, "pointer"); in TEST()
169 static_assert(std::is_same<const int&, decltype(ctaref)::reference>::value, "reference"); in TEST()
170 static_assert(std::is_same<const int*, decltype(ctaref)::const_pointer>::value, "const_pointer"); in TEST()
171 static_assert(std::is_same<const int&, decltype(ctaref)::const_reference>::value, in TEST()
174 std::copy(ctaref.begin(), ctaref.end(), std::back_inserter(output)); in TEST()
175 ASSERT_EQ(std::vector<int>({ 1, 0, 1, 0, 3, 1 }), output); in TEST()
178 std::copy(ctaref.cbegin(), ctaref.cend(), std::back_inserter(output)); in TEST()
179 ASSERT_EQ(std::vector<int>({ 1, 0, 1, 0, 3, 1 }), output); in TEST()
182 std::copy(ctaref.rbegin(), ctaref.rend(), std::back_inserter(output)); in TEST()
183 ASSERT_EQ(std::vector<int>({ 1, 3, 0, 1, 0, 1 }), output); in TEST()
186 std::copy(ctaref.crbegin(), ctaref.crend(), std::back_inserter(output)); in TEST()
187 ASSERT_EQ(std::vector<int>({ 1, 3, 0, 1, 0, 1 }), output); in TEST()