The multiset::insert() is a built-in function in C++ STL which insert elements in the multiset container or inserts the elements from a position to another… Read More
Tag Archives: CPP-Functions
The lldiv() is a builtin function in C++ STL which gives us the quotient and remainder of the division of two numbers. Syntax: lldiv(n, d)… Read More
This function is used to negate the given values i.e. to change the sign of the values. It changes the positive values to negative and… Read More
list::rbegin() is an inbuilt function in C++ STL that returns a reverse iterator which points to the last element of the list. Syntax: list_name.rbegin() Parameter:… Read More
std::vector::insert() is a built-in function in C++ STL that inserts new elements before the element at the specified position, effectively increasing the container size by… Read More
The vector::capacity() function is a built-in function which returns the size of the storage space currently allocated for the vector, expressed in terms of elements.… Read More
The basic_string::c_str() is a built-in function in C++ which returns a pointer to an array that contains a null-terminated sequence of characters representing the current… Read More
vector::rbegin() is a built-in function in C++ STL which returns a reverse iterator pointing to the last element in the container. Syntax: vector_name.rbegin() Parameters: The function… Read More
map::erase() is a built-in function in C++ STL that is used to erase elements from the container. It can be used to erase keys and… Read More
The map::equal_range() is a built-in function in C++ STL which returns a pair of iterators. The pair refers to the bounds of a range that… Read More
The map::insert() is a built-in function in C++ STL which is used to insert elements with a particular key in the map container. Syntax: iterator… Read More
The map::count() is a built-in function in C++ STL which returns 1 if the element with key K is present in the map container. It… Read More
The map::emplace_hint() is a built-in function in C++ STL which inserts the key and its element in the map container with a given hint. It… Read More
The map::find() is a built-in function in C++ STL that returns an iterator or a constant iterator that refers to the position where the key… Read More
The map::lower_bound(k) is a built-in function in C++ STL which returns an iterator pointing to the key in the container which is equivalent to k… Read More