Skip to content

Commit e56f55e

Browse files
committed
remove unused template paramater of skip_iterator
1 parent c03253b commit e56f55e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hpp/export_command/skip_container.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace _detail {
2222
template <typename>
2323
struct skip_container;
2424

25-
template <typename T, typename It>
25+
template <typename It>
2626
struct skip_iterator {
2727
public:
2828
It it;
@@ -46,8 +46,8 @@ struct skip_iterator {
4646
// Pass the iterator to support the case that *it is rvalue.
4747
return {skip, it};
4848
}
49-
template <typename T2, typename It2>
50-
bool operator!=(const skip_iterator<T2, It2> &to) const noexcept {
49+
template <typename It2>
50+
bool operator!=(const skip_iterator<It2> &to) const noexcept {
5151
return !done && it != to.it;
5252
}
5353
skip_iterator &operator++() noexcept {
@@ -99,8 +99,8 @@ struct skip_container {
9999

100100
private:
101101
const T &original;
102-
const skip_iterator<T, decltype(iterable_begin(original))> _begin;
103-
const skip_iterator<T, decltype(iterable_end(original))> _end;
102+
const skip_iterator<decltype(iterable_begin(original))> _begin;
103+
const skip_iterator<decltype(iterable_end(original))> _end;
104104

105105
std::optional<std::size_t> orig_container_size_cache;
106106
const std::function<std::size_t()> orig_container_size = [this] {

0 commit comments

Comments
 (0)