mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix counting_iterator
This commit is contained in:
parent
ea22a6ba5c
commit
a9da4b2a1f
11 changed files with 141 additions and 89 deletions
|
@ -1,7 +1,7 @@
|
|||
#ifndef SPROUT_ITERATOR_COUNTING_ITERATOR_HPP
|
||||
#define SPROUT_ITERATOR_COUNTING_ITERATOR_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <limits>
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
#include <type_traits>
|
||||
|
@ -34,7 +34,9 @@ namespace sprout {
|
|||
value_type current_;
|
||||
private:
|
||||
public:
|
||||
counting_iterator() = default;
|
||||
SPROUT_CONSTEXPR counting_iterator()
|
||||
: current_(std::numeric_limits<value_type>::max())
|
||||
{}
|
||||
counting_iterator(counting_iterator const&) = default;
|
||||
explicit SPROUT_CONSTEXPR counting_iterator(value_type const& v)
|
||||
: current_(v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue