[libcxx-commits] [libcxx] [libcxx] Add missing member `cend()` to `MinSequenceContainer` (PR #175114)

Vojtěch Michal via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 9 04:08:16 PST 2026


================
@@ -54,6 +54,7 @@ struct MinSequenceContainer {
   TEST_CONSTEXPR_CXX20 const_iterator cbegin() const { return const_iterator(data_.data()); }
   TEST_CONSTEXPR_CXX20 iterator end() { return begin() + size(); }
   TEST_CONSTEXPR_CXX20 const_iterator end() const { return begin() + size(); }
+  TEST_CONSTEXPR_CXX20 const_iterator cend() const { return begin() + size(); }
----------------
vmichal wrote:

I strived for consistency with existing `cbegin()` that also does not call `begin() const`.
Changed.

https://github.com/llvm/llvm-project/pull/175114


More information about the libcxx-commits mailing list