std::return_temporary_buffer (3) - Linux Manuals
std::return_temporary_buffer: std::return_temporary_buffer
NAME
std::return_temporary_buffer - std::return_temporary_buffer
Synopsis
Defined in header <memory>
template< class T > (deprecated in C++17)
void return_temporary_buffer( T* p ); (removed in C++20)
Deallocates storage previously allocated with std::get_temporary_buffer.
Parameters
p - the pointer previously returned by std::get_temporary_buffer and not invalidated by an earlier call to return_temporary_buffer
Return value
(none)
Exceptions (since C++17)
(none)
Example
// Run this code
Output:
See also
get_temporary_buffer obtains uninitialized storage
(deprecated in C++17)
(removed in C++20)