In this article, we are going to see C++ STL function binary_search() which uses the standard binary search algorithm to search an element within a range.