Skip to content

Commit 9219f90

Browse files
committed
Move private section to the end of the class
1 parent 5afcd09 commit 9219f90

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

source/containers/algorithms/generate.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ struct generate_sentinel {};
3535

3636
template<typename Offset, typename Function>
3737
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:
4338
using iterator_category = std::input_iterator_tag;
4439
using difference_type = decltype(bounded::declval<Offset>() - bounded::declval<Offset>());
4540

@@ -77,6 +72,9 @@ struct generate_n_iterator {
7772
return it;
7873
}
7974
}
75+
private:
76+
[[no_unique_address]] Offset m_remaining;
77+
[[no_unique_address]] stored_function<Function> m_generator;
8078
};
8179

8280
export template<typename Size, typename Function>

0 commit comments

Comments
 (0)