[libcxx-commits] [libcxx] Add [[clang::lifetimebound]] to numerous functions in libc++ include headers (PR #112751)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 1 10:45:44 PDT 2024


================
@@ -1251,38 +1251,38 @@ public:
 #endif
   _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string& operator=(value_type __c);
 
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator begin() _NOEXCEPT {
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator begin() _NOEXCEPT _LIBCPP_LIFETIMEBOUND {
----------------
ldionne wrote:

How about `c_str()` and `data()` too?

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


More information about the libcxx-commits mailing list