<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libstdc++: new File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libstdc++ </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('a00032.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#namespaces">Namespaces</a> | <a href="#define-members">Macros</a> | <a href="#typedef-members">Typedefs</a> | <a href="#func-members">Functions</a> | <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">new File Reference</div> </div> </div><!--header--> <div class="contents"> <p><a href="a00032_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> Classes</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="a01656.html">std::bad_alloc</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> Namespaces</h2></td></tr> <tr class="memitem:a01538"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="a01538.html">std</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> Typedefs</h2></td></tr> <tr class="memitem:abacda397e52027e3aac448f94b157208"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="a01538.html#abacda397e52027e3aac448f94b157208">std::new_handler</a>) ()</td></tr> <tr class="separator:abacda397e52027e3aac448f94b157208"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a2aab280c9a87214e453f8f598827d13b"><td class="memItemLeft" align="right" valign="top">new_handler </td><td class="memItemRight" valign="bottom"><a class="el" href="a01538.html#a2aab280c9a87214e453f8f598827d13b">std::get_new_handler</a> () noexcept</td></tr> <tr class="separator:a2aab280c9a87214e453f8f598827d13b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a08ab821429d6f9fd2f16f642de3e9163"><td class="memItemLeft" align="right" valign="top">new_handler </td><td class="memItemRight" valign="bottom"><a class="el" href="a01538.html#a08ab821429d6f9fd2f16f642de3e9163">std::set_new_handler</a> (new_handler) throw ()</td></tr> <tr class="separator:a08ab821429d6f9fd2f16f642de3e9163"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr class="memitem:a87dd0f2d68609d8cb10074e88a3f5616"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a87dd0f2d68609d8cb10074e88a3f5616">operator new</a> (std::size_t) __attribute__((__externally_visible__))</td></tr> <tr class="separator:a87dd0f2d68609d8cb10074e88a3f5616"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab7d9eb6ec41693e1f516bdae8e2eab28"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#ab7d9eb6ec41693e1f516bdae8e2eab28">operator new[]</a> (std::size_t) __attribute__((__externally_visible__))</td></tr> <tr class="separator:ab7d9eb6ec41693e1f516bdae8e2eab28"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a97d405b67ae977bca98e612fc9f81dd9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a97d405b67ae977bca98e612fc9f81dd9">operator delete</a> (void *) noexcept __attribute__((__externally_visible__))</td></tr> <tr class="separator:a97d405b67ae977bca98e612fc9f81dd9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac15dc62eb64a3db956da5b1c1b5615d3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#ac15dc62eb64a3db956da5b1c1b5615d3">operator delete[]</a> (void *) noexcept __attribute__((__externally_visible__))</td></tr> <tr class="separator:ac15dc62eb64a3db956da5b1c1b5615d3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a542c61605d4c51b703ff6a4780a7dfb4"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a542c61605d4c51b703ff6a4780a7dfb4">operator new</a> (std::size_t, const std::nothrow_t &) noexcept __attribute__((__externally_visible__))</td></tr> <tr class="separator:a542c61605d4c51b703ff6a4780a7dfb4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a21bfcde67c743a1a2287e842bdc7af8d"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a21bfcde67c743a1a2287e842bdc7af8d">operator new[]</a> (std::size_t, const std::nothrow_t &) noexcept __attribute__((__externally_visible__))</td></tr> <tr class="separator:a21bfcde67c743a1a2287e842bdc7af8d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3180b04385e1f798caf4af08c2e2dd9a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a3180b04385e1f798caf4af08c2e2dd9a">operator delete</a> (void *, const std::nothrow_t &) noexcept __attribute__((__externally_visible__))</td></tr> <tr class="separator:a3180b04385e1f798caf4af08c2e2dd9a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5cb154dbee09700b3e6a9be7f95e698e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a5cb154dbee09700b3e6a9be7f95e698e">operator delete[]</a> (void *, const std::nothrow_t &) noexcept __attribute__((__externally_visible__))</td></tr> <tr class="separator:a5cb154dbee09700b3e6a9be7f95e698e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7266c02fbd2a435679e6c07c93ad9979"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a7266c02fbd2a435679e6c07c93ad9979">operator new</a> (std::size_t, void *__p) noexcept</td></tr> <tr class="separator:a7266c02fbd2a435679e6c07c93ad9979"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a64323ac4a634756c7892bf1f9702c486"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a64323ac4a634756c7892bf1f9702c486">operator new[]</a> (std::size_t, void *__p) noexcept</td></tr> <tr class="separator:a64323ac4a634756c7892bf1f9702c486"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a39fac79c27e30348bee194c4fca4814c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a39fac79c27e30348bee194c4fca4814c">operator delete</a> (void *, void *) noexcept</td></tr> <tr class="separator:a39fac79c27e30348bee194c4fca4814c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa73513101c30d057abb0e9f683f67aa8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#aa73513101c30d057abb0e9f683f67aa8">operator delete[]</a> (void *, void *) noexcept</td></tr> <tr class="separator:aa73513101c30d057abb0e9f683f67aa8"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> <tr class="memitem:ae4b7b14b5246bacb54f2a4ae366ccd44"><td class="memItemLeft" align="right" valign="top"><a id="ae4b7b14b5246bacb54f2a4ae366ccd44"></a> const nothrow_t </td><td class="memItemRight" valign="bottom"><b>std::nothrow</b></td></tr> <tr class="separator:ae4b7b14b5246bacb54f2a4ae366ccd44"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>This is a Standard C++ Library header.</p> <p>The header <code>new</code> defines several functions to manage dynamic memory and handling memory allocation errors; see <a href="http://gcc.gnu.org/onlinedocs/libstdc++/18_support/howto.html#4">http://gcc.gnu.org/onlinedocs/libstdc++/18_support/howto.html#4</a> for more. </p> <p class="definition">Definition in file <a class="el" href="a00032_source.html">new</a>.</p> </div><h2 class="groupheader">Function Documentation</h2> <a id="a97d405b67ae977bca98e612fc9f81dd9"></a> <h2 class="memtitle"><span class="permalink"><a href="#a97d405b67ae977bca98e612fc9f81dd9">◆ </a></span>operator delete() <span class="overload">[1/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void operator delete </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> </div> </div> <a id="a3180b04385e1f798caf4af08c2e2dd9a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3180b04385e1f798caf4af08c2e2dd9a">◆ </a></span>operator delete() <span class="overload">[2/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void operator delete </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::nothrow_t & </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> </div> </div> <a id="a39fac79c27e30348bee194c4fca4814c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a39fac79c27e30348bee194c4fca4814c">◆ </a></span>operator delete() <span class="overload">[3/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void operator delete </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> <p class="definition">Definition at line <a class="el" href="a00032_source.html#l00174">174</a> of file <a class="el" href="a00032_source.html">new</a>.</p> </div> </div> <a id="ac15dc62eb64a3db956da5b1c1b5615d3"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac15dc62eb64a3db956da5b1c1b5615d3">◆ </a></span>operator delete[]() <span class="overload">[1/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void operator delete[] </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> </div> </div> <a id="a5cb154dbee09700b3e6a9be7f95e698e"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5cb154dbee09700b3e6a9be7f95e698e">◆ </a></span>operator delete[]() <span class="overload">[2/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void operator delete[] </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::nothrow_t & </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> </div> </div> <a id="aa73513101c30d057abb0e9f683f67aa8"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa73513101c30d057abb0e9f683f67aa8">◆ </a></span>operator delete[]() <span class="overload">[3/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void operator delete[] </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> <p class="definition">Definition at line <a class="el" href="a00032_source.html#l00175">175</a> of file <a class="el" href="a00032_source.html">new</a>.</p> </div> </div> <a id="a87dd0f2d68609d8cb10074e88a3f5616"></a> <h2 class="memtitle"><span class="permalink"><a href="#a87dd0f2d68609d8cb10074e88a3f5616">◆ </a></span>operator new() <span class="overload">[1/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* operator new </td> <td>(</td> <td class="paramtype">std::size_t </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> </div> </div> <a id="a542c61605d4c51b703ff6a4780a7dfb4"></a> <h2 class="memtitle"><span class="permalink"><a href="#a542c61605d4c51b703ff6a4780a7dfb4">◆ </a></span>operator new() <span class="overload">[2/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void* operator new </td> <td>(</td> <td class="paramtype">std::size_t </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::nothrow_t & </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> </div> </div> <a id="a7266c02fbd2a435679e6c07c93ad9979"></a> <h2 class="memtitle"><span class="permalink"><a href="#a7266c02fbd2a435679e6c07c93ad9979">◆ </a></span>operator new() <span class="overload">[3/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void* operator new </td> <td>(</td> <td class="paramtype">std::size_t </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>__p</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> <p class="definition">Definition at line <a class="el" href="a00032_source.html#l00168">168</a> of file <a class="el" href="a00032_source.html">new</a>.</p> </div> </div> <a id="ab7d9eb6ec41693e1f516bdae8e2eab28"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab7d9eb6ec41693e1f516bdae8e2eab28">◆ </a></span>operator new[]() <span class="overload">[1/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* operator new[] </td> <td>(</td> <td class="paramtype">std::size_t </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> </div> </div> <a id="a21bfcde67c743a1a2287e842bdc7af8d"></a> <h2 class="memtitle"><span class="permalink"><a href="#a21bfcde67c743a1a2287e842bdc7af8d">◆ </a></span>operator new[]() <span class="overload">[2/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void* operator new[] </td> <td>(</td> <td class="paramtype">std::size_t </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::nothrow_t & </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> </div> </div> <a id="a64323ac4a634756c7892bf1f9702c486"></a> <h2 class="memtitle"><span class="permalink"><a href="#a64323ac4a634756c7892bf1f9702c486">◆ </a></span>operator new[]() <span class="overload">[3/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void* operator new[] </td> <td>(</td> <td class="paramtype">std::size_t </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>__p</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>These are replaceable signatures:</p><ul> <li>normal single new and delete (no arguments, throw <code>bad_alloc</code> on error)</li> <li>normal array new and delete (same)</li> <li><code>nothrow</code> single new and delete (take a <code>nothrow</code> argument, return <code>NULL</code> on error)</li> <li><code>nothrow</code> array new and delete (same)</li> </ul> <p>Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program. </p> <p class="definition">Definition at line <a class="el" href="a00032_source.html#l00170">170</a> of file <a class="el" href="a00032_source.html">new</a>.</p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_434a3f2b81816e64e09d7f43ca77c261.html">libstdc++-v3</a></li><li class="navelem"><a class="el" href="dir_a90251c88a7d73de47aa10417ea6b112.html">libsupc++</a></li><li class="navelem"><a class="el" href="a00032.html">new</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>