This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++11 status.

### 1264. `quick_exit` support for freestanding implementations

Section: 16.4.2.5 [compliance] Status: C++11 Submitter: Alisdair Meredith Opened: 2009-11-12 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [compliance].

View all issues with C++11 status.

Discussion:

Addresses UK 172

This issue is a response to NB comment UK-172

The functions `quick_exit` and `at_quick_exit` should be added to the required features of `<cstdlib>` in a freestanding implementation.

This comment was rejected in Summit saying neither `at_exit` nor `at_quick_exit` should be required. This suggests the comment was misread, as `atexit` is already required to be supported. If the LWG really did wish to not require the registration functions be supported, then a separate issue should be opened to change the current standard.

Given both `exit` and `atexit` are required, the UK panel feels it is appropriate to require the new `quick_exit` facility is similarly supported.

[ 2009-12-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]

Proposed resolution:

Ammend p3 Freestanding implementations 16.4.2.5 [compliance]

> 3 The supplied version of the header `<cstdlib>` shall declare at least the functions `abort()`, `atexit()`, `at_quick_exit`, and `exit()`, and `quick_exit`(17.6 [support.start.term]). The other headers listed in this table shall meet the same requirements as for a hosted implementation.