mirror of
https://github.com/boostorg/core.git
synced 2025-05-09 23:03:54 +00:00
Add documentation for quick_exit
This commit is contained in:
parent
13c09e805b
commit
32ac6c5b36
@ -52,6 +52,7 @@ criteria for inclusion is that the utility component be:
|
||||
[include noncopyable.qbk]
|
||||
[include null_deleter.qbk]
|
||||
[include pointer_traits.qbk]
|
||||
[include quick_exit.qbk]
|
||||
[include ref.qbk]
|
||||
[include scoped_enum.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]
|
Loading…
x
Reference in New Issue
Block a user