Louis Dionne | eb8650a | 2021-11-17 21:25:01 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
Eric Fiselier | 6af1b7d | 2017-06-15 01:53:12 | [diff] [blame] | 2 | // |
Chandler Carruth | 57b08b0 | 2019-01-19 10:56:40 | [diff] [blame] | 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 |
Eric Fiselier | 6af1b7d | 2017-06-15 01:53:12 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
Arthur O'Dwyer | bbb0f2c | 2022-02-11 18:00:39 | [diff] [blame] | 9 | #include <vector> |
Eric Fiselier | 6af1b7d | 2017-06-15 01:53:12 | [diff] [blame] | 10 | |
| 11 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 12 | |
Nikolas Klauser | b82da8b | 2022-02-03 22:09:37 | [diff] [blame] | 13 | #ifndef _LIBCPP_ABI_DO_NOT_EXPORT_VECTOR_BASE_COMMON |
| 14 | |
| 15 | template <bool> |
| 16 | struct __vector_base_common; |
| 17 | |
| 18 | template <> |
| 19 | struct __vector_base_common<true> { |
| 20 | _LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void __throw_length_error() const; |
| 21 | _LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void __throw_out_of_range() const; |
| 22 | }; |
| 23 | |
Louis Dionne | 9783f28 | 2023-12-18 19:01:33 | [diff] [blame^] | 24 | void __vector_base_common<true>::__throw_length_error() const { std::__throw_length_error("vector"); } |
Louis Dionne | 84b0b52 | 2021-08-19 16:21:06 | [diff] [blame] | 25 | |
Louis Dionne | 9783f28 | 2023-12-18 19:01:33 | [diff] [blame^] | 26 | void __vector_base_common<true>::__throw_out_of_range() const { std::__throw_out_of_range("vector"); } |
Eric Fiselier | 6af1b7d | 2017-06-15 01:53:12 | [diff] [blame] | 27 | |
Nikolas Klauser | b82da8b | 2022-02-03 22:09:37 | [diff] [blame] | 28 | #endif // _LIBCPP_ABI_DO_NOT_EXPORT_VECTOR_BASE_COMMON |
| 29 | |
Eric Fiselier | 6af1b7d | 2017-06-15 01:53:12 | [diff] [blame] | 30 | _LIBCPP_END_NAMESPACE_STD |