[libcxx-commits] [libcxx] [libc++] Implement LWG4245: Operators that interact with counted_iterator and default_sentinel_t should be noexcept (PR #235445)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Oct 25 17:34:27 PDT 2026
================
@@ -77,6 +77,11 @@ constexpr bool test() {
{
std::counted_iterator iter(cpp20_input_iterator<int*>(buffer), 8);
+ static_assert(noexcept(iter == std::default_sentinel));
----------------
Zingam wrote:
AFAIT No additional comment is needed, even less extracting the test cases into a function.
https://github.com/llvm/llvm-project/pull/235445
More information about the libcxx-commits
mailing list