[libcxx-commits] [PATCH] D115312: [libc++] [ranges] Fix bugs in ranges::empty().
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Dec 23 10:41:15 PST 2021
philnik accepted this revision.
philnik added inline comments.
================
Comment at: libcxx/test/std/ranges/range.access/empty.pass.cpp:157-164
assert(std::ranges::empty(a) == true);
DisabledSizeRangeWithBeginEnd d;
assert(std::ranges::empty(d) == true);
BeginEndAndEmpty e;
assert(std::ranges::empty(e) == false); // e.empty()
----------------
Why the `== false` and `== true`? Seems weird.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115312/new/
https://reviews.llvm.org/D115312
More information about the libcxx-commits
mailing list