Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) boost::algorithm::find_first

 

boost::algorithm::find_first is a Boost std::string algorithm to find the first std::string in a std::string.

 

#include <cassert>
#include <boost/algorithm/string/find.hpp>

int main()
{
  const std::string s = "abc**def";
  assert( !boost::algorithm::find_first(s,"**").empty() );
  assert(  boost::algorithm::find_first(s,"xx").empty() );
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict