71 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 <new>10#include <exception>11 12namespace std13{14 15// exception16 17exception::~exception() noexcept18{19}20 21const char* exception::what() const noexcept22{23 return "std::exception";24}25 26// bad_exception27 28bad_exception::~bad_exception() noexcept29{30}31 32const char* bad_exception::what() const noexcept33{34 return "std::bad_exception";35}36 37 38// bad_alloc39 40bad_alloc::bad_alloc() noexcept41{42}43 44bad_alloc::~bad_alloc() noexcept45{46}47 48const char*49bad_alloc::what() const noexcept50{51 return "std::bad_alloc";52}53 54// bad_array_new_length55 56bad_array_new_length::bad_array_new_length() noexcept57{58}59 60bad_array_new_length::~bad_array_new_length() noexcept61{62}63 64const char*65bad_array_new_length::what() const noexcept66{67 return "bad_array_new_length";68}69 70} // std71