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

Provide our container classes with empty() functions. #16842

Open
bangerth opened this issue Apr 3, 2024 · 1 comment
Open

Provide our container classes with empty() functions. #16842

bangerth opened this issue Apr 3, 2024 · 1 comment

Comments

@bangerth
Copy link
Member

bangerth commented Apr 3, 2024

All of the C++ container classes seem to have received empty() functions that make writing x.size() == 0 simpler. We might want to think of adding those to our classes as well. Currently, we have

> grep -r 'size() == 0' include/ source/ examples/ | wc -l
118

All of these 118 places could be simplified.

@bangerth bangerth added this to the Release 9.6 milestone Apr 3, 2024
@masterleinad
Copy link
Member

masterleinad commented Apr 3, 2024

See #15731 and #15661.

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

No branches or pull requests

2 participants