Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function first_finder

boost::algorithm::first_finder — "First" finder

Synopsis

// In header: <boost/algorithm/string/finder.hpp>


template<typename RangeT> unspecified first_finder(const RangeT & Search);
template<typename RangeT, typename PredicateT> 
  unspecified first_finder(const RangeT & Search, PredicateT Comp);

Description

Construct the first_finder. The finder searches for the first occurrence of the string in a given input. The result is given as an iterator_range delimiting the match.

Parameters:

Search

A substring to be searched for.

Returns:

An instance of the first_finder object


PrevUpHomeNext