![]() |
VOOZH | about |
deque::get_allocator() is a built in function in C++ STL which is used to get allocator of container deque. Syntax:
Allocator_type get_allocator()
Parameters: This function does not accept any parameter. Return value: Returns an allocator associated with deque. Below programs illustrate the working of deque::get_allocator() function. Example-1:
Is allocator Pair : true
Example-2:
0 1 2
Time complexity: O(1).
Auxiliary Space: O(n). // n is the size of the deque.