Skip to content

Commit

Permalink
drops init list support from chunked
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaining committed Apr 8, 2016
1 parent fff872d commit 082948f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions chunked.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <functional>
#include <utility>
#include <iterator>
#include <initializer_list>

namespace iter {
namespace impl {
Expand All @@ -21,9 +20,6 @@ namespace iter {
template <typename Container>
impl::Chunker<Container> chunked(Container&&, std::size_t);

template <typename T>
impl::Chunker<std::initializer_list<T>> chunked(
std::initializer_list<T>, std::size_t);
}

template <typename Container>
Expand All @@ -36,9 +32,6 @@ class iter::impl::Chunker {
: container(std::forward<Container>(c)), chunk_size{sz} {}

friend Chunker iter::chunked<Container>(Container&&, std::size_t);
template <typename T>
friend Chunker<std::initializer_list<T>> iter::chunked(
std::initializer_list<T>, std::size_t);

using IndexVector = std::vector<iterator_type<Container>>;
using DerefVec = IterIterWrapper<IndexVector>;
Expand Down Expand Up @@ -120,10 +113,4 @@ iter::impl::Chunker<Container> iter::chunked(
return {std::forward<Container>(container), chunk_size};
}

template <typename T>
iter::impl::Chunker<std::initializer_list<T>> iter::chunked(
std::initializer_list<T> il, std::size_t chunk_size) {
return {std::move(il), chunk_size};
}

#endif

0 comments on commit 082948f

Please sign in to comment.