| 1 | //===----------------------------------------------------------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include <vector> |
| 10 | |
| 11 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 12 | _LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS |
| 13 | |
| 14 | #if _LIBCPP_AVAILABILITY_MINIMUM_HEADER_VERSION < 15 |
| 15 | |
| 16 | template <bool> |
| 17 | struct __vector_base_common; |
| 18 | |
| 19 | template <> |
| 20 | struct __vector_base_common<true> { |
| 21 | [[noreturn]] _LIBCPP_EXPORTED_FROM_ABI void __throw_length_error() const; |
| 22 | [[noreturn]] _LIBCPP_EXPORTED_FROM_ABI void __throw_out_of_range() const; |
| 23 | }; |
| 24 | |
| 25 | void __vector_base_common<true>::__throw_length_error() const { std::__throw_length_error(msg: "vector"); } |
| 26 | |
| 27 | void __vector_base_common<true>::__throw_out_of_range() const { std::__throw_out_of_range(msg: "vector"); } |
| 28 | |
| 29 | #endif // _LIBCPP_AVAILABILITY_MINIMUM_HEADER_VERSION < 15 |
| 30 | |
| 31 | _LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS |
| 32 | _LIBCPP_END_NAMESPACE_STD |
| 33 |