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

Behavior of any() / all() / try_any() / try_all() is not documented for empty stream #2847

Open
johntconklin opened this issue Mar 29, 2024 · 0 comments
Labels

Comments

@johntconklin
Copy link

Unlike std::any() and std::all(), the behavior of these functions for empty streams does not seem to be documented.

Experimentally, they behave the same (for all()/try_all(), an empty iterator returns true / Ok(true); for any()/try_any(), an empty stream returns false / Ok(false)). Documentation should make it explicit.

@taiki-e taiki-e added the docs label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants