boost.png (6897 bytes) Home Libraries People FAQ More

PrevUpHomeNext

Function nth_finder

boost::algorithm::nth_finder — "Nth" finder

Synopsis

template<typename ContainerT> 
  unspecified nth_finder(const ContainerT & Search, unsigned int Nth);
template<typename ContainerT, typename PredicateT> 
  unspecified nth_finder(const ContainerT & Search, unsigned int Nth, 
                         PredicateT Comp);

Description

Construct the nth_finder . The finder searches for the n-th (zero-indexed) occurrence of the string in a given input. The result is given as an iterator_range delimiting the match.

Parameters

Nth

An index of the match to be find

Search

A substring to be searched for.

Returns: An instance of the nth_finder object

Copyright © 2002-2004 Pavol Droba

PrevUpHomeNext