unordered_map clear in C++ STL
unordered_map::clear() function is used to remove all elements from the container. When this function is applied to unordered_map its size becomes zero. Syntax: unordered_map_name.clear() Parameters: This function does not accepts any parameter Return type: This function return nothing. Examples: Input: ump = { {1, 2}, {3, 4}, {5, 6}, {7, 8}} ump.c