VOOZH about

URL: https://www.geeksforgeeks.org/cpp/unordered_multiset-cbegin-function-in-c-stl/

⇱ unordered_multiset cbegin() function in C++ STL - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

unordered_multiset cbegin() function in C++ STL

Last Updated : 2 Aug, 2018
The unordered_multiset::cbegin() is a built-in function in C++ STL which returns a constant iterator pointing to the first element in the container or to the first element in one of its bucket. Syntax:
unordered_multiset_name.cbegin(n)
Parameters: The function accepts one parameter. If a parameter is passed, it returns a constant iterator pointing to the first element in the bucket. If no parameter is passed, then it returns a constant iterator pointing to the first element in the unordered_multiset container. Return Value: It returns a constant iterator. It cannot be used to change the value of the unordered_multiset element. Below programs illustrates the above function: Program 1: Program 2: Program 3:
Comment