@@ -54,7 +54,7 @@ class flat_jagged_vector {
5454
5555 // / @brief Random access iterator over segments of the `flat_jagged_vector`.
5656 // /
57- // / This iterator dereferences to a `segment_type` (span of elements in a single segment),
57+ // / This iterator dereferences to a `segment_type` (subrange of elements in a single segment),
5858 // / allowing efficient iteration and random access to individual segments. The iterator maintains
5959 // / pointers to the element data and the offsets array for dereferencing.
6060 // /
@@ -74,13 +74,13 @@ class flat_jagged_vector {
7474 using iterator_concept = std::random_access_iterator_tag;
7575 // / @brief Legacy iterator category (random access)
7676 using iterator_category = std::random_access_iterator_tag;
77- // / @brief Type of segment this iterator dereferences to (span or const span )
77+ // / @brief Type of segment this iterator dereferences to (subrange or const subrange )
7878 using value_type = std::conditional_t <Const, const_segment_type, segment_type>;
7979 // / @brief Signed integral difference type
8080 using difference_type = std::ptrdiff_t ;
81- // / @brief Pointer type (void because segment iterators dereference to spans )
81+ // / @brief Pointer type (void because segment iterators dereference to subranges )
8282 using pointer = void ;
83- // / @brief Reference type (span of elements)
83+ // / @brief Reference type (subrange of elements)
8484 using reference = value_type;
8585
8686 // / @brief Default constructor creates a null iterator
@@ -101,7 +101,7 @@ class flat_jagged_vector {
101101 }
102102
103103 // / @brief Dereferences the iterator to the current segment.
104- // / @return A span representing the segment at the current position
104+ // / @return A subrange representing the segment at the current position
105105 [[nodiscard]] reference operator *() const noexcept {
106106 const auto beg = to_diff (*this ->_offset_ptr );
107107 const auto end = to_diff (*(this ->_offset_ptr + 1uz));
@@ -472,7 +472,7 @@ class flat_jagged_vector {
472472
473473 // / @brief Returns the segment at the given index without bounds checking.
474474 // / @param i The index of the segment to access
475- // / @return A span representing the segment at index i
475+ // / @return A subrange representing the segment at index i
476476 // / @pre `i < size()`; otherwise Undefined Behavior
477477 // / @warning No bounds checking is performed for performance. Use `at()` for bounds-checked access.
478478 // / Calling on an out-of-bounds index results in Undefined Behavior.
@@ -484,7 +484,7 @@ class flat_jagged_vector {
484484
485485 // / @brief Returns a const segment at the given index without bounds checking.
486486 // / @param i The index of the segment to access
487- // / @return A const span representing the segment at index i
487+ // / @return A const subrange representing the segment at index i
488488 // / @pre `i < size()`; otherwise Undefined Behavior
489489 // / @warning No bounds checking is performed for performance. Use `at()` for bounds-checked access.
490490 // / Calling on an out-of-bounds index results in Undefined Behavior.
@@ -518,7 +518,7 @@ class flat_jagged_vector {
518518
519519 // / @brief Returns the segment at the given index with bounds checking.
520520 // / @param i The index of the segment
521- // / @return A span representing the segment at index i
521+ // / @return A subrange representing the segment at index i
522522 // / @exception std::out_of_range If `i >= size()`
523523 // / @note Provides the same safety as `std::vector::at()`
524524 [[nodiscard]] segment_type at (size_type i) {
@@ -528,7 +528,7 @@ class flat_jagged_vector {
528528
529529 // / @brief Returns a const segment at the given index with bounds checking.
530530 // / @param i The index of the segment
531- // / @return A const span representing the segment at index i
531+ // / @return A const subrange representing the segment at index i
532532 // / @exception std::out_of_range If `i >= size()`
533533 // / @note Provides the same safety as `std::vector::at()`
534534 [[nodiscard]] const_segment_type at (size_type i) const {
@@ -561,31 +561,31 @@ class flat_jagged_vector {
561561 }
562562
563563 // / @brief Returns the first segment without bounds checking.
564- // / @return A span representing the first segment
564+ // / @return A subrange representing the first segment
565565 // / @pre Container must not be empty; otherwise Undefined Behavior
566566 // / @warning No bounds checking. Results in Undefined Behavior if container is empty.
567567 [[nodiscard]] segment_type front () noexcept {
568568 return (*this )[0uz];
569569 }
570570
571571 // / @brief Returns a const reference to the first segment without bounds checking.
572- // / @return A const span representing the first segment
572+ // / @return A const subrange representing the first segment
573573 // / @pre Container must not be empty; otherwise Undefined Behavior
574574 // / @warning No bounds checking. Results in Undefined Behavior if container is empty.
575575 [[nodiscard]] const_segment_type front () const noexcept {
576576 return (*this )[0uz];
577577 }
578578
579579 // / @brief Returns the last segment without bounds checking.
580- // / @return A span representing the last segment
580+ // / @return A subrange representing the last segment
581581 // / @pre Container must not be empty; otherwise Undefined Behavior
582582 // / @warning No bounds checking. Results in Undefined Behavior if container is empty.
583583 [[nodiscard]] segment_type back () noexcept {
584584 return (*this )[this ->size () - 1uz];
585585 }
586586
587587 // / @brief Returns a const reference to the last segment without bounds checking.
588- // / @return A const span representing the last segment
588+ // / @return A const subrange representing the last segment
589589 // / @pre Container must not be empty; otherwise Undefined Behavior
590590 // / @warning No bounds checking. Results in Undefined Behavior if container is empty.
591591 [[nodiscard]] const_segment_type back () const noexcept {
@@ -670,15 +670,15 @@ class flat_jagged_vector {
670670 return this ->_data .size ();
671671 }
672672
673- // / @brief Returns a span over all element data in flattened form.
674- // / @return A span of all elements in the underlying `_data` array.
673+ // / @brief Returns a subrange of all element data in flattened form.
674+ // / @return A subrange of all elements in the underlying `_data` array.
675675 // / @note Allows direct access to the flattened representation of all segments.
676676 [[nodiscard]] segment_type data_view () noexcept {
677677 return segment_type (this ->_data );
678678 }
679679
680- // / @brief Returns a const span over all element data in flattened form.
681- // / @return A const span of all elements in the underlying `_data` array.
680+ // / @brief Returns a const subrange of all element data in flattened form.
681+ // / @return A const subrange of all elements in the underlying `_data` array.
682682 // / @note Allows direct access to the flattened representation of all segments.
683683 [[nodiscard]] const_segment_type data_view () const noexcept {
684684 return const_segment_type (this ->_data );
0 commit comments