quick_exit.qbk 828 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [/
  2. Copyright 2018 Peter Dimov
  3. Distributed under the Boost Software License, Version 1.0.
  4. See accompanying file LICENSE_1_0.txt
  5. or copy at http://boost.org/LICENSE_1_0.txt
  6. ]
  7. [section:quick_exit quick_exit]
  8. [simplesect Authors]
  9. * Peter Dimov
  10. [endsimplesect]
  11. [section Header <boost/core/quick_exit.hpp>]
  12. The header `<boost/core/quick_exit.hpp>` defines the function
  13. `void boost::quick_exit(int code)`. It calls the standard C++11 function
  14. [@https://en.cppreference.com/w/cpp/utility/program/quick_exit
  15. `std::quick_exit(code)`], if that is available, and otherwise exits the
  16. process via [@https://en.cppreference.com/w/cpp/utility/program/_Exit
  17. `std::_Exit(code)`] or equivalent.
  18. [section Synopsis]
  19. ``
  20. namespace boost
  21. {
  22. [[noreturn]] void quick_exit(int code) noexcept;
  23. }
  24. ``
  25. [endsect]
  26. [endsect]
  27. [endsect]