Skip to content

Tag Archives: CPP-Functions

The set::lower_bound() is a built-in function in C++ STL which returns an iterator pointing to the element in the container which is equivalent to k… Read More
The set::find is a built-in function in C++ STL which returns an iterator to the element which is searched in the set container. If the… Read More
The set::insert is a built-in function in C++ STL which insert elements in the set container or inserts the elements from a position to another… Read More
The set::equal_range() is a built-in function in C++ STL which returns an iterator of pairs. The pair refers to the range that includes all the… Read More
The map::upper_bound() is a built-in function in C++ STL which returns an iterator pointing to the immediate next element just greater than k. If the… Read More
The map::max_size() is a built-in function in C++ STL which returns the maximum number of elements a map container can hold. Syntax: map_name.max_size() Parameters: This… Read More
The std::vector::data() is an STL in C++ which returns a direct pointer to the memory array used internally by the vector to store its owned… Read More
The vector::emplace() is an STL in C++ which extends container by inserting new element at position. Reallocation happens only if there is a need of… Read More
Given N numbers, find the number of permutations in which the sum of elements at odd index and sum of elements at even index are… Read More
The beta(), betaf() and betal() are built-in functions in C++ STL that are used to compute the beta functionof two positive real values. The function… Read More
The multimap::operator= is a built in C++ STL which assigns new contents to the container, replacing its current content. Syntax: multimap1_name = multimap2_name Parameters: The… Read More
The map::emplace() is a built-in function in C++ STL which inserts the key and its element in the map container. It effectively increases the container… Read More
The multimap::insert is a built-in function in C++ STL which is used to insert elements in the multimap container. Syntax: iterator multimap_name.insert({key, element}) Parameters: The… Read More
The multimap::max_size() is a built-in function in C++ STL which returns the maximum number of elements a multimap container can hold. Syntax:   multimap_name.max_size() Parameters: This… Read More
map::cbegin() is a built-in function in C++ STL which returns a constant iterator referring to the first element in the map container. Since map container… Read More