aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxx/src/vector.cpp
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-06-09 16:12:17 +0300
committerAndrey Khalyavin <halyavin@gmail.com>2022-06-09 16:12:17 +0300
commitec9bd2e3177e1f501e75656d0a0d6e0e511cc7e0 (patch)
tree6b23a95fecf4c17de0a823d4662e8cdb6039515e /contrib/libs/cxxsupp/libcxx/src/vector.cpp
parent513d8035935699ef5f29d1f58750eadd48f5de6d (diff)
downloadydb-ec9bd2e3177e1f501e75656d0a0d6e0e511cc7e0.tar.gz
Update libc++ to 24c12bfb (5 Feb 2022).
Notable changes: * make _LIBCPP_ABI_UNSTABLE set _LIBCPP_ABI_VERSION * replace include utility with specific includes in __utility folder * disallow ranges:begin for array of incomplete types * move fpos to separate header * delete optional usage of type builtins that were never implemented * define ranges::views namespace in its own header * remove base class of the vector ref:1d141d911ba017f306cca431c3b56c25d495e54e
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/src/vector.cpp')
-rw-r--r--contrib/libs/cxxsupp/libcxx/src/vector.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/src/vector.cpp b/contrib/libs/cxxsupp/libcxx/src/vector.cpp
index cc3d291e35..201d4e3bf0 100644
--- a/contrib/libs/cxxsupp/libcxx/src/vector.cpp
+++ b/contrib/libs/cxxsupp/libcxx/src/vector.cpp
@@ -10,12 +10,25 @@
_LIBCPP_BEGIN_NAMESPACE_STD
+#ifndef _LIBCPP_ABI_DO_NOT_EXPORT_VECTOR_BASE_COMMON
+
+template <bool>
+struct __vector_base_common;
+
+template <>
+struct __vector_base_common<true> {
+ _LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void __throw_length_error() const;
+ _LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void __throw_out_of_range() const;
+};
+
void __vector_base_common<true>::__throw_length_error() const {
- _VSTD::__throw_length_error("vector");
+ _VSTD::__throw_length_error("vector");
}
void __vector_base_common<true>::__throw_out_of_range() const {
- _VSTD::__throw_out_of_range("vector");
+ _VSTD::__throw_out_of_range("vector");
}
+#endif // _LIBCPP_ABI_DO_NOT_EXPORT_VECTOR_BASE_COMMON
+
_LIBCPP_END_NAMESPACE_STD