Function template find_nth
boost::find_nth — Find n-th algorithm.
Synopsis
template<typename Range1T, typename Range2T>
( Input, Search, Nth);
Description
Search for the n-th (zero-indexed) occurrence of the substring in the input.
Parameters: |
Input
|
A string which will be searched. |
Nth
|
An index (zero-indexed) of the match to be found. For negative N, the matches are counted from the end of string. |
Search
|
A substring to be searched for. |
|
Returns: |
An iterator_range delimiting the match. Returned iterator is either Range1T::iterator or Range1T::const_iterator, depending on the constness of the input parameter. |