The unordered_multiset::get_allocator() function is a STL function in C++ which is used to include unorder_multiset header file in program. This function gets the stored allocator object and returns the allocator object which is used to construct the container. It is a public member function.
allocator_type get_allocator() const;
Here allocator_type is the type of the allocator which is used by the container.
Parameters: It does not accepts any parameter.
Return Value: It returns the allocator type.
Below program illustrate get_allocator method in C++ STL:
allocator is : true
Complexity: It takes constant time of complexity to perform operation.
GeeksforGeeks has prepared a complete interview preparation course with premium videos, theory, practice problems, TA support and many more features. Please refer Placement 100 for details
- Rust vs C++: Will Rust Replace C++ in Future ?
- Priority queue of pairs in C++ with ordering by first and second element
- Implementation of lower_bound() and upper_bound() in Vector of Pairs in C++
- Generating RGBA portable graphic images through C++
- Difference between Register and Memory
- Simple POST request using the fetch API
- Use of blockquote, q and cite tags in HTML
- How to remove margin introduced in pre tag in bootstrap 4?
- goto statement in R Programming
- Encoding and Decoding Base64 Strings in Python
- How to split a column of list in different rows using bootstrap?
- How to display all files in a directory using Node.js ?
- How CSS transition work with linear gradient background button?
- New self vs. new static in PHP
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.