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 for the latest Boost documentation.
PrevUpHomeNext

Global eos

boost::xpressive::eos — End of sequence assertion.

Synopsis

// In header: <boost/xpressive/regex_primitives.hpp>

unspecified eos;

Description

For the character sequence [begin, end), 'eos' matches the zero-width sub-sequence [end, end).

[Note] Note

Unlike the perl end of sequence assertion $, 'eos' will not match at the position [end-1, end-1) if *(end-1) is '\n'. To get that behavior, use (!_n >> eos).


PrevUpHomeNext