I am learning C++ language and I want to know working of C++ functions. So, please tell me about get_allocator () function of C++ language. Also tell me how to use get_allocator () function in C++. Thanks in advance.
I am learning C++ language and I want to know working of C++ functions. So, please tell me about get_allocator () function of C++ language. Also tell me how to use get_allocator () function in C++. Thanks in advance.
This function utilized to get allocator in C++ language. This function returns allocator of object that utilized to build vector. This function comes below vector class.
This function returns allocator of given specified vector. Member type allocator_type can be specified to parameter of second template utilized to instantiate that particular class vector and type of allocator. Following is syntax of get_allocator() function:
Code:
allocator_type get_allocator () const;
Bookmarks