11debfc3dSmrg // Implementation file for the -*- C++ -*- dynamic memory management header. 21debfc3dSmrg 3*8feb0f0bSmrg // Copyright (C) 2010-2020 Free Software Foundation, Inc. 41debfc3dSmrg // 51debfc3dSmrg // This file is part of GCC. 61debfc3dSmrg // 71debfc3dSmrg // GCC is free software; you can redistribute it and/or modify 81debfc3dSmrg // it under the terms of the GNU General Public License as published by 91debfc3dSmrg // the Free Software Foundation; either version 3, or (at your option) 101debfc3dSmrg // any later version. 111debfc3dSmrg // 121debfc3dSmrg // GCC is distributed in the hope that it will be useful, 131debfc3dSmrg // but WITHOUT ANY WARRANTY; without even the implied warranty of 141debfc3dSmrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 151debfc3dSmrg // GNU General Public License for more details. 161debfc3dSmrg // 171debfc3dSmrg // Under Section 7 of GPL version 3, you are granted additional 181debfc3dSmrg // permissions described in the GCC Runtime Library Exception, version 191debfc3dSmrg // 3.1, as published by the Free Software Foundation. 201debfc3dSmrg 211debfc3dSmrg // You should have received a copy of the GNU General Public License and 221debfc3dSmrg // a copy of the GCC Runtime Library Exception along with this program; 231debfc3dSmrg // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 241debfc3dSmrg // <http://www.gnu.org/licenses/>. 251debfc3dSmrg 261debfc3dSmrg #include "new" 271debfc3dSmrg ~bad_alloc()281debfc3dSmrgstd::bad_alloc::~bad_alloc() _GLIBCXX_USE_NOEXCEPT { } 291debfc3dSmrg 301debfc3dSmrg const char* what() const311debfc3dSmrgstd::bad_alloc::what() const _GLIBCXX_USE_NOEXCEPT 321debfc3dSmrg { 331debfc3dSmrg return "std::bad_alloc"; 341debfc3dSmrg } 35