Skip to content

Commit

Permalink
drops init list support from slice
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaining committed Apr 8, 2016
1 parent 5f8b444 commit 009930d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions slice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include <iterator>
#include <type_traits>
#include <initializer_list>

namespace iter {
namespace impl {
Expand All @@ -20,15 +19,6 @@ namespace iter {
template <typename Container, typename DifferenceType>
impl::Sliced<Container, DifferenceType> slice(
Container&& container, DifferenceType stop);

template <typename T, typename DifferenceType>
impl::Sliced<std::initializer_list<T>, DifferenceType> slice(
std::initializer_list<T> il, DifferenceType start, DifferenceType stop,
DifferenceType step = 1);

template <typename T, typename DifferenceType>
impl::Sliced<std::initializer_list<T>, DifferenceType> slice(
std::initializer_list<T> il, DifferenceType stop);
}

template <typename Container, typename DifferenceType>
Expand Down Expand Up @@ -131,17 +121,4 @@ iter::impl::Sliced<Container, DifferenceType> iter::slice(
return {std::forward<Container>(container), 0, stop, 1};
}

template <typename T, typename DifferenceType>
iter::impl::Sliced<std::initializer_list<T>, DifferenceType> iter::slice(
std::initializer_list<T> il, DifferenceType start, DifferenceType stop,
DifferenceType step) {
return {std::move(il), start, stop, step};
}

template <typename T, typename DifferenceType>
iter::impl::Sliced<std::initializer_list<T>, DifferenceType> iter::slice(
std::initializer_list<T> il, DifferenceType stop) {
return {std::move(il), 0, stop, 1};
}

#endif

0 comments on commit 009930d

Please sign in to comment.