Standard std namespace. More...
Functions | |
| new_handler | get_new_handler () noexcept |
| Get the current handler. | |
| new_handler | set_new_handler (new_handler handler) noexcept |
Establishes the function designated by handler as the current new_handler. | |
Variables | |
| const nothrow_t | nothrow = nothrow_t{} |
When building µOS++ applications for embedded targets, in addition to the os::estd namespace, the standard thread classes are also defined in the std namespace, so that applications explicitly using the std:: prefix need minimal changes to build.
The only non-standard feature is the need to prefix the included headers with cmsis-plus/std/, for example <cmsis-plus/std/thread>.
|
noexcept |
nullptr if not set.The initial new_handler is a null pointer.
|
noexcept |
| handler | Pointer to user function. |
This handler is invoked when the standard operator new() detect an out of memory condition, to give a chance to the application process it properly. If the application can arrange for more memory to be used for allocation, this function should return and the allocation process is retried. If not, this function should gracefully shut down and restart.
The initial new_handler is a null pointer.
Definition at line 79 of file new.cpp.
References os::trace::printf().