Skip to content

Commit 39c93cd

Browse files
committed
Minor fixes after code review.
1 parent abf94cc commit 39c93cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/positionless/partitioning.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ template <std::forward_iterator Iterator> class partitioning {
4545

4646
/// Returns the size of the part `part_index`.
4747
///
48-
/// Defined only for random access collections.
49-
///
5048
/// Complexity: O(1) for random access iterators, O(n) otherwise.
5149
[[nodiscard]]
5250
size_t part_size(size_t part_index) const;
@@ -62,7 +60,7 @@ template <std::forward_iterator Iterator> class partitioning {
6260
/// boundary forward by `n` elements, and decreasing the size of the next part.
6361
///
6462
/// - Precondition: `part_index + 1 < parts_count()`
65-
/// - Precondition: size of part `part_index + 1` >= `n`
63+
/// - Precondition: `part_size(part_index + 1) >= n`
6664
/// - Complexity: O(n) for forward iterators, O(1) for random access iterators
6765
void grow_by(size_t part_index, size_t n);
6866

0 commit comments

Comments
 (0)