75 vector<int>
const v1{1, 2, 3, 4};
76 vector<char>
const v2{
'a',
'b',
'c',
'd'};
79 vector<A<int>> is1, is2;
80 vector<A<char>> cs1, cs2;
81 map<A<int>, A<char>> p1, p2;
83 transform(
cbegin(v1),
cend(v1), back_inserter(is1), MakeA<int>());
84 transform(
cbegin(v2),
cend(v2), back_inserter(cs1), MakeA<char>());
88 inserter(p1,
begin(p1)),
89 MakeAPair<int, char>());
95 BOOST_TEST(is1 == is2);
96 BOOST_TEST(cs1 == cs2);
98 BOOST_TEST(p1.size() == p2.size());
102 for (; p1_it !=
cend(p1); ++p1_it, ++p2_it) {
103 BOOST_TEST(p1_it->first.t_ == p2_it->first.t_);
104 BOOST_TEST(p1_it->second.t_ == p2_it->second.t_);
decltype(auto) constexpr cend(T &&obj)
ADL-aware version of std::cend.
auto transform_all(Container &, OutputIt, UnaryOp)
decltype(auto) constexpr cbegin(T &&obj)
ADL-aware version of std::cbegin.
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.