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
16template <bool>
17struct __vector_base_common;
18
19template <>
20struct __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
25void __vector_base_common<true>::__throw_length_error() const { std::__throw_length_error(msg: "vector"); }
26
27void __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