Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

source_position

Synopsis

template <class Line, class Col, class PrevChar>
struct source_position;

This is a template metaprogramming value.

Table 81. Arguments

Name

Type

Line

boxed integer value

Col

boxed integer value

PrevChar

boxed character value


Description

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.

Header

#include <boost/metaparse/source_position.hpp>

Expression semantics

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

Constant values of this type

Operations


PrevUpHomeNext