@@ -32,7 +32,7 @@ namespace internal {
3232 {
3333 internal::check_unary_predicate_for_container<Pred, Container>();
3434 Container result;
35- auto it = internal::get_back_inserter<Container> (result);
35+ auto it = internal::get_back_inserter (result);
3636 std::copy_if (std::begin (xs), std::end (xs), it, pred);
3737 return result;
3838 }
@@ -102,7 +102,7 @@ Container keep_if_with_idx(Pred pred, const Container& xs)
102102{
103103 internal::check_index_with_type_predicate_for_container<Pred, Container>();
104104 Container ys;
105- auto it = internal::get_back_inserter<Container> (ys);
105+ auto it = internal::get_back_inserter (ys);
106106 std::size_t idx = 0 ;
107107 for (const auto & x : xs) {
108108 if (internal::invoke (pred, idx++, x))
@@ -190,7 +190,7 @@ Container keep_idxs(const ContainerIdxs& idxs_to_keep, const Container& xs)
190190 auto idxs_left = convert_container<std::list<std::size_t >>(
191191 unique (sort (idxs_to_keep)));
192192 Container ys;
193- auto it = internal::get_back_inserter<Container> (ys);
193+ auto it = internal::get_back_inserter (ys);
194194 std::size_t idx = 0 ;
195195 for (const auto & x : xs) {
196196 if (!idxs_left.empty () && idxs_left.front () == idx) {
@@ -214,7 +214,7 @@ Container drop_idxs(const ContainerIdxs& idxs_to_drop, const Container& xs)
214214 auto idxs_left = convert_container<std::list<std::size_t >>(
215215 unique (sort (idxs_to_drop)));
216216 Container ys;
217- auto it = internal::get_back_inserter<Container> (ys);
217+ auto it = internal::get_back_inserter (ys);
218218 std::size_t idx = 0 ;
219219 for (const auto & x : xs) {
220220 if (idxs_left.empty () || idxs_left.front () != idx) {
@@ -253,7 +253,7 @@ ContainerOut justs(const ContainerIn& xs)
253253 auto justsInMaybes = keep_if (is_just<T>, xs);
254254 ContainerOut ys;
255255 internal::prepare_container (ys, fplus::size_of_cont (justsInMaybes));
256- auto itOut = internal::get_back_inserter<ContainerOut> (ys);
256+ auto itOut = internal::get_back_inserter (ys);
257257 std::transform (std::begin (justsInMaybes), std::end (justsInMaybes),
258258 itOut, unsafe_get_just<T>);
259259 return ys;
@@ -274,7 +274,7 @@ ContainerOut oks(const ContainerIn& xs)
274274 auto oksInResults = keep_if (is_ok<Ok, Error>, xs);
275275 ContainerOut ys;
276276 internal::prepare_container (ys, fplus::size_of_cont (oksInResults));
277- auto itOut = internal::get_back_inserter<ContainerOut> (ys);
277+ auto itOut = internal::get_back_inserter (ys);
278278 std::transform (std::begin (oksInResults), std::end (oksInResults),
279279 itOut, unsafe_get_ok<Ok, Error>);
280280 return ys;
@@ -295,7 +295,7 @@ ContainerOut errors(const ContainerIn& xs)
295295 auto errorsInResults = keep_if (is_error<Ok, Error>, xs);
296296 ContainerOut ys;
297297 internal::prepare_container (ys, fplus::size_of_cont (errorsInResults));
298- auto itOut = internal::get_back_inserter<ContainerOut> (ys);
298+ auto itOut = internal::get_back_inserter (ys);
299299 std::transform (std::begin (errorsInResults), std::end (errorsInResults),
300300 itOut, unsafe_get_error<Ok, Error>);
301301 return ys;
@@ -410,7 +410,7 @@ Container adjacent_keep_snd_if(BinaryPredicate p, const Container& xs)
410410 }
411411 internal::check_binary_predicate_for_container<BinaryPredicate, Container>();
412412 Container result;
413- auto it = internal::get_back_inserter<Container> (result);
413+ auto it = internal::get_back_inserter (result);
414414 auto it_in = std::begin (xs);
415415 *it = *it_in;
416416 while (internal::add_to_iterator (it_in) != std::end (xs)) {
@@ -439,7 +439,7 @@ Container adjacent_drop_fst_if(BinaryPredicate p, const Container& xs)
439439 }
440440 internal::check_binary_predicate_for_container<BinaryPredicate, Container>();
441441 Container result;
442- auto it = internal::get_back_inserter<Container> (result);
442+ auto it = internal::get_back_inserter (result);
443443 auto it_in = std::begin (xs);
444444 while (internal::add_to_iterator (it_in) != std::end (xs)) {
445445 if (!internal::invoke (p, *it_in, *internal::add_to_iterator (it_in))) {
0 commit comments