Chapter 23. Utilities

The <functional> header contains many additional functors and helper functions, extending section 20.3. They are implemented in the file stl_function.h:

20.4.1 can use several different allocators; they are described on the main extensions page.

20.4.3 is extended with a special version of get_temporary_buffer taking a second argument. The argument is a pointer, which is ignored, but can be used to specify the template type (instead of using explicit function template arguments like the standard version does). That is, in addition to

get_temporary_buffer<int>(5);

you can also use

get_temporary_buffer(5, (int*)0);

A class temporary_buffer is given in stl_tempbuf.h.

The specialized algorithms of section 20.4.4 are extended with uninitialized_copy_n.