forked from boostorg/core
Add documentation for quick_exit
This commit is contained in:
@ -52,6 +52,7 @@ criteria for inclusion is that the utility component be:
|
|||||||
[include noncopyable.qbk]
|
[include noncopyable.qbk]
|
||||||
[include null_deleter.qbk]
|
[include null_deleter.qbk]
|
||||||
[include pointer_traits.qbk]
|
[include pointer_traits.qbk]
|
||||||
|
[include quick_exit.qbk]
|
||||||
[include ref.qbk]
|
[include ref.qbk]
|
||||||
[include scoped_enum.qbk]
|
[include scoped_enum.qbk]
|
||||||
[include swap.qbk]
|
[include swap.qbk]
|
||||||
|
40
doc/quick_exit.qbk
Normal file
40
doc/quick_exit.qbk
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[/
|
||||||
|
Copyright 2018 Peter Dimov
|
||||||
|
|
||||||
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
|
|
||||||
|
See accompanying file LICENSE_1_0.txt
|
||||||
|
or copy at http://boost.org/LICENSE_1_0.txt
|
||||||
|
]
|
||||||
|
|
||||||
|
[section:quick_exit quick_exit]
|
||||||
|
|
||||||
|
[simplesect Authors]
|
||||||
|
|
||||||
|
* Peter Dimov
|
||||||
|
|
||||||
|
[endsimplesect]
|
||||||
|
|
||||||
|
[section Header <boost/core/quick_exit.hpp>]
|
||||||
|
|
||||||
|
The header `<boost/core/quick_exit.hpp>` defines the function
|
||||||
|
`void boost::quick_exit(int code)`. It calls the standard C++11 function
|
||||||
|
[@https://en.cppreference.com/w/cpp/utility/program/quick_exit
|
||||||
|
`std::quick_exit(code)`], if that is available, and otherwise exits the
|
||||||
|
process via [@https://en.cppreference.com/w/cpp/utility/program/_Exit
|
||||||
|
`std::_Exit(code)`] or equivalent.
|
||||||
|
|
||||||
|
[section Synopsis]
|
||||||
|
|
||||||
|
``
|
||||||
|
namespace boost
|
||||||
|
{
|
||||||
|
[[noreturn]] void quick_exit(int code) noexcept;
|
||||||
|
}
|
||||||
|
``
|
||||||
|
|
||||||
|
[endsect]
|
||||||
|
|
||||||
|
[endsect]
|
||||||
|
|
||||||
|
[endsect]
|
Reference in New Issue
Block a user