xref: /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++/bad_alloc.cc (revision b1e838363e3c6fc78a55519254d99869742dd33c)
148fb7bfaSmrg // Implementation file for the -*- C++ -*- dynamic memory management header.
248fb7bfaSmrg 
3*b1e83836Smrg // Copyright (C) 2010-2022 Free Software Foundation, Inc.
448fb7bfaSmrg //
548fb7bfaSmrg // This file is part of GCC.
648fb7bfaSmrg //
748fb7bfaSmrg // GCC is free software; you can redistribute it and/or modify
848fb7bfaSmrg // it under the terms of the GNU General Public License as published by
948fb7bfaSmrg // the Free Software Foundation; either version 3, or (at your option)
1048fb7bfaSmrg // any later version.
1148fb7bfaSmrg //
1248fb7bfaSmrg // GCC is distributed in the hope that it will be useful,
1348fb7bfaSmrg // but WITHOUT ANY WARRANTY; without even the implied warranty of
1448fb7bfaSmrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1548fb7bfaSmrg // GNU General Public License for more details.
1648fb7bfaSmrg //
1748fb7bfaSmrg // Under Section 7 of GPL version 3, you are granted additional
1848fb7bfaSmrg // permissions described in the GCC Runtime Library Exception, version
1948fb7bfaSmrg // 3.1, as published by the Free Software Foundation.
2048fb7bfaSmrg 
2148fb7bfaSmrg // You should have received a copy of the GNU General Public License and
2248fb7bfaSmrg // a copy of the GCC Runtime Library Exception along with this program;
2348fb7bfaSmrg // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2448fb7bfaSmrg // <http://www.gnu.org/licenses/>.
2548fb7bfaSmrg 
2648fb7bfaSmrg #include "new"
2748fb7bfaSmrg 
~bad_alloc()2848fb7bfaSmrg std::bad_alloc::~bad_alloc() _GLIBCXX_USE_NOEXCEPT { }
2948fb7bfaSmrg 
3048fb7bfaSmrg const char*
what() const3148fb7bfaSmrg std::bad_alloc::what() const _GLIBCXX_USE_NOEXCEPT
3248fb7bfaSmrg {
3348fb7bfaSmrg   return "std::bad_alloc";
3448fb7bfaSmrg }
35