Skip to content

Implement cross-capacity comparison#144

Open
ChronoInferna wants to merge 8 commits into
bemanproject:mainfrom
ChronoInferna:cross-capacity
Open

Implement cross-capacity comparison#144
ChronoInferna wants to merge 8 commits into
bemanproject:mainfrom
ChronoInferna:cross-capacity

Conversation

@ChronoInferna

Copy link
Copy Markdown

Implemented cross-capacity comparison operators operator== and <=> to resolve #95

Also beautified the test files for consistency

@ChronoInferna ChronoInferna requested a review from wusatosi as a code owner May 26, 2026 00:04
standardize test includes

add license details
rename test

move cross_capacity tests to compare.test.cpp
@wusatosi

Copy link
Copy Markdown
Member

Thank you for updating the tests

Comment on lines -401 to -405
constexpr friend bool operator==(const inplace_vector_base &x,
const inplace_vector_base &y) {
return x.size() == y.size() && std::ranges::equal(x, y);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a macro to selectively enable P3698?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just added!

@wusatosi wusatosi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 98.649%. remained the same — ChronoInferna:cross-capacity into bemanproject:main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P3698 Cross-capacity comparisons for inplace_vector

3 participants