Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update iterator_category of Vec iterators in doc #1434

Merged
merged 1 commit into from
Feb 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions book/src/binding/vec.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ public:
...template <typename T>
...class Vec<T>::iterator final {
...public:
...#if __cplusplus >= 202002L
... using iterator_category = std::contiguous_iterator_tag;
...#else
... using iterator_category = std::random_access_iterator_tag;
...#endif
... using value_type = T;
... using pointer = T *;
... using reference = T &;
Expand Down Expand Up @@ -97,7 +101,11 @@ public:
...template <typename T>
...class Vec<T>::const_iterator final {
...public:
...#if __cplusplus >= 202002L
... using iterator_category = std::contiguous_iterator_tag;
...#else
... using iterator_category = std::random_access_iterator_tag;
...#endif
... using value_type = const T;
... using pointer = const T *;
... using reference = const T &;
Expand Down
Loading