brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1012 B · 3f3a906 Raw
31 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include <vector>10 11_LIBCPP_BEGIN_NAMESPACE_STD12 13#ifndef _LIBCPP_ABI_DO_NOT_EXPORT_VECTOR_BASE_COMMON14 15template <bool>16struct __vector_base_common;17 18template <>19struct __vector_base_common<true> {20  [[noreturn]] _LIBCPP_EXPORTED_FROM_ABI void __throw_length_error() const;21  [[noreturn]] _LIBCPP_EXPORTED_FROM_ABI void __throw_out_of_range() const;22};23 24void __vector_base_common<true>::__throw_length_error() const { std::__throw_length_error("vector"); }25 26void __vector_base_common<true>::__throw_out_of_range() const { std::__throw_out_of_range("vector"); }27 28#endif // _LIBCPP_ABI_DO_NOT_EXPORT_VECTOR_BASE_COMMON29 30_LIBCPP_END_NAMESPACE_STD31