Namespaces
Variants
Views
Actions

Program support utilities

From cppreference.com
< cpp‎ | utility
 
 
Utilities library
Language support
Type support (basic types, RTTI)
Library feature-test macros (C++20)
Dynamic memory management
Program utilities
Coroutine support (C++20)
Variadic functions
Debugging support
(C++26)
Three-way comparison
(C++20)
(C++20)(C++20)(C++20)
(C++20)(C++20)(C++20)
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)

 
 

Contents

[edit] Program termination

The following functions manage program termination and resource cleanup.

Defined in header <cstdlib>
causes abnormal program termination (without cleaning up)
(function) [edit]
causes normal program termination with cleaning up
(function) [edit]
causes quick program termination without completely cleaning up
(function) [edit]
(C++11)
causes normal program termination without cleaning up
(function) [edit]
registers a function to be called on std::exit() invocation
(function) [edit]
registers a function to be called on std::quick_exit invocation
(function) [edit]
indicates program execution status
(macro constant) [edit]

Unreachable control flow

Defined in header <utility>
marks unreachable point of execution
(function) [edit]
(since C++23)

[edit] Communicating with the environment

Defined in header <cstdlib>
calls the host environment's command processor
(function) [edit]
access to the list of environment variables
(function) [edit]

[edit] Signals

Several functions and macro constants for signal management are provided.

Defined in header <csignal>
sets a signal handler for particular signal
(function) [edit]
runs the signal handler for particular signal
(function) [edit]
the integer type that can be accessed as an atomic entity from an asynchronous signal handler
(typedef)
defines signal handling strategies
(macro constant) [edit]
return value of signal specifying that an error was encountered
(macro constant) [edit]
Signal types
defines signal types
(macro constant) [edit]

[edit] Non-local jumps

Defined in header <csetjmp>
saves the context
(function macro) [edit]
jumps to specified location
(function) [edit]
Types
execution context type
(typedef) [edit]

[edit] See also

C documentation for Program support utilities