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

Click here to view the latest version of this page.
PrevUpHomeNext

Function head_finder

boost::algorithm::head_finder — "Head" finder

Synopsis

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


unspecified head_finder(int N);

Description

Construct the head_finder. The finder returns a head of a given input. The head is a prefix of a string up to n elements in size. If an input has less then n elements, whole input is considered a head. The result is given as an iterator_range delimiting the match.

Parameters:

N

The size of the head

Returns:

An instance of the head_finder object


PrevUpHomeNext