Skip to content

Add Bitmask::empty()#15

Merged
henzeb merged 1 commit intohenzeb:mainfrom
mathroc:empty-bitmask
Dec 20, 2025
Merged

Add Bitmask::empty()#15
henzeb merged 1 commit intohenzeb:mainfrom
mathroc:empty-bitmask

Conversation

@mathroc
Copy link
Contributor

@mathroc mathroc commented Dec 4, 2025

using any() for this is more verbose and less efficient, we can use ->value() === 0 but it feels like there should be a more high level way of doing this, so I'm suggesting adding Bitmask::empty() to test if any of its bits are set or not

@mathroc mathroc marked this pull request as draft December 4, 2025 20:43
@mathroc mathroc marked this pull request as ready for review December 5, 2025 10:13
@henzeb henzeb merged commit 5bb2ff4 into henzeb:main Dec 20, 2025
@mathroc mathroc deleted the empty-bitmask branch December 26, 2025 11:56
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.

3 participants