[libc-commits] [libc] [clang-tools-extra] [llvm] [libcxx] [mlir] [clang] [libc++][span] P2821R5: span.at() (PR #74994)

Mark de Wever via libc-commits libc-commits at lists.llvm.org
Mon Dec 11 09:05:49 PST 2023


================
@@ -343,6 +345,15 @@ public:
         return __data_[__idx];
     }
 
+#  if _LIBCPP_STD_VER >= 26
+    _LIBCPP_HIDE_FROM_ABI constexpr reference at(size_type __index) const {
+      if (__index >= size()) {
----------------
mordante wrote:

@philnik777 requested to remove these braces and I agree. This is the LLVM coding style.

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


More information about the libc-commits mailing list