We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5afcd09 commit 9219f90Copy full SHA for 9219f90
source/containers/algorithms/generate.cpp
@@ -35,11 +35,6 @@ struct generate_sentinel {};
35
36
template<typename Offset, typename Function>
37
struct generate_n_iterator {
38
-private:
39
- [[no_unique_address]] Offset m_remaining;
40
- [[no_unique_address]] stored_function<Function> m_generator;
41
-
42
-public:
43
using iterator_category = std::input_iterator_tag;
44
using difference_type = decltype(bounded::declval<Offset>() - bounded::declval<Offset>());
45
@@ -77,6 +72,9 @@ struct generate_n_iterator {
77
72
return it;
78
73
}
79
74
75
+private:
76
+ [[no_unique_address]] Offset m_remaining;
+ [[no_unique_address]] stored_function<Function> m_generator;
80
};
81
82
export template<typename Size, typename Function>
0 commit comments