Home | Libraries | People | FAQ | More |
template <class Line, class Col, class PrevChar> struct source_position;
This is a template metaprogramming value.
Compile-time data-structure describing a position of the input text.
The values of this data-structure store the last character that was parsed
before reaching the position of the input described by the source_position
value.
Its tag is source_position_tag
.
The beginning of the input text is represented by start
.
#include <boost/metaparse/source_position.hpp>
For any l
, c
compile-time boxed integral values
and p
compile-time boxed
character value, the following are equivalent
get_col<source_position<l, c, p>>::type c::type get_line<source_position<l, c, p>>::type l::type get_prev_char<source_position<l, c, p>>::type p::type
boost::mpl::equal_to
boost::mpl::greater
boost::mpl::greater_equal
boost::mpl::less
boost::mpl::less_equal
boost::mpl::not_equal_to
get_col
get_line
get_prev_char
next_char
next_line