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 template find

boost::algorithm::find — Generic find algorithm.

Synopsis

template<typename RangeT, typename FinderT> 
  iterator_range< typename range_result_iterator< RangeT >::type > 
  find(RangeT & Input, FinderT Finder);

Description

Search the input using the given finder.

Parameters:
Finder

Finder object used for searching.

Input

A string which will be searched.

Returns:

An iterator_range delimiting the match. Returned iterator is either RangeT::iterator or RangeT::const_iterator , depending on the constness of the input parameter.

Copyright © 2002-2004 Pavol Droba

PrevUpHomeNext