Tag: Check if any element in array contains string in C++
Check if any element in array contains string in C++
This tutorial will discuss about a unique way to check if any element in array contains string in C++. To check any string element in an array contains a sepcific string, we will use the std::any_of() function from STL Algorithms. The std::any_of() function accepts three arguments, Advertisements Iterator pointing to the start of a sequence. …
Check if any element in array contains string in C++Read More