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.
- cin get() in C++ with Examples
- Difference between Increment and Decrement Operators
- What is the difference between (NaN != NaN) & (NaN !== NaN)?
- PHP | Unset Session Variable
- Building App For Google Assistant Without Any Coding
- Map of Vectors in C++ STL with Examples
- Problem in comparing Floating point numbers and how to compare them correctly?
- exit(0) vs exit(1) in C/C++ with Examples
- IIM Ahmedabad Interview Experience
- How to set timeout for ajax by using jQuery?
- How to create a CSS rule or class at runtime using jQuery ?
- How to get form data using POST method in PHP ?
- How to convert an array to CSV file in PHP ?
- How to use links on card-img-overlay class in Bootstrap 4 ?
- ES6 | Collection
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.