Path: blob/main/contrib/llvm-project/libcxx/src/new_helpers.cpp
35147 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include <__verbose_abort>9#include <new>1011namespace std { // purposefully not versioned1213#ifndef __GLIBCXX__14const nothrow_t nothrow{};15#endif1617#ifndef LIBSTDCXX1819void __throw_bad_alloc() {20# ifndef _LIBCPP_HAS_NO_EXCEPTIONS21throw bad_alloc();22# else23_LIBCPP_VERBOSE_ABORT("bad_alloc was thrown in -fno-exceptions mode");24# endif25}2627#endif // !LIBSTDCXX2829} // namespace std303132