Namespaces
Variants
Views
Actions

std::abort

From cppreference.com
< cpp‎ | utility‎ | program
Revision as of 11:42, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cstdlib>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td >
[[noreturn]] void abort();
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
             void abort();
</td>

<td class="t-dcl-nopad"> </td> <td > (until C++11) </td> </tr> Template:ddcl list end

Causes abnormal program termination unless SIGABRT is being caught by a signal handler passed to signal and the handler does not return.

Destructors of variables with automatic, thread local and static storage durations are not called. Functions, passed to Template:rlpf are also not called. Whether open resources such as files are closed is implementation defined. Implementation defined status is returned to the host environment that indicates unsuccessful execution.

Contents

Parameters

(none)

Return value

(none)

Exceptions

noexcept specification:  
noexcept
  

Example

See also

causes normal program termination with cleaning up
(function) [edit]
registers a function to be called on std::exit() invocation
(function) [edit]
causes quick program termination without completely cleaning up
(function) [edit]
C documentation for abort