3. Which is present in the basic interface of the allocator interface? Explanation: The basic interface of an allocator class consists of a set of typedefs, a pair of allocation functions, allocate() and deallocate() and a pair of construction/destruction members, construct() and destroy(). 4.
What is the use of the allocator interface?
As a result, the current purpose of allocators is to give the programmer control over memory allocation within containers, rather than to adopt the address model of the underlying hardware.
What is the use of the allocator interface in user-defined container?
6. What is the use of the allocator interface in the user-defined container? Explanation: Storage management is the use of the allocator interface in the user-defined container.