blob: b6153b0e9bf991b8f12149bf865751f8455479e3 [file] [log] [blame]
Louis Dionneeb8650a2021-11-17 21:25:011//===----------------------------------------------------------------------===//
Eric Fiselier6af1b7d2017-06-15 01:53:122//
Chandler Carruth57b08b02019-01-19 10:56:403// 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 Fiselier6af1b7d2017-06-15 01:53:126//
7//===----------------------------------------------------------------------===//
8
Arthur O'Dwyerbbb0f2c2022-02-11 18:00:399#include <vector>
Eric Fiselier6af1b7d2017-06-15 01:53:1210
11_LIBCPP_BEGIN_NAMESPACE_STD
12
Nikolas Klauserb82da8b2022-02-03 22:09:3713#ifndef _LIBCPP_ABI_DO_NOT_EXPORT_VECTOR_BASE_COMMON
14
15template <bool>
16struct __vector_base_common;
17
18template <>
19struct __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 Dionne9783f282023-12-18 19:01:3324void __vector_base_common<true>::__throw_length_error() const { std::__throw_length_error("vector"); }
Louis Dionne84b0b522021-08-19 16:21:0625
Louis Dionne9783f282023-12-18 19:01:3326void __vector_base_common<true>::__throw_out_of_range() const { std::__throw_out_of_range("vector"); }
Eric Fiselier6af1b7d2017-06-15 01:53:1227
Nikolas Klauserb82da8b2022-02-03 22:09:3728#endif // _LIBCPP_ABI_DO_NOT_EXPORT_VECTOR_BASE_COMMON
29
Eric Fiselier6af1b7d2017-06-15 01:53:1230_LIBCPP_END_NAMESPACE_STD