Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

reject

Synopsis

template <class Msg, class Pos>
struct reject;

This is a template metaprogramming value.

Table 71. Arguments


Description

Values representing a failed parser application. It behaves as a lazy template metafunction: when it is evaluated as a metafunction, it returns itself with its arguments evaluated. See expression semantics for further details.

[Note] Note

Note that for backward compatibility when Msg::type is not defined, reject<....>::type does not evaluate Msg. For example reject<int, start>::type is reject<int, start::type>. Using types that are not template metaprogramming values as Msg is deprecated and will not work in future versions of the library.

Expressions semantics

For any m template metaprogramming value and p source position the following are equivalent:

reject<m, p>::type

reject<m, p::type>

Header

#include <boost/metaparse/reject.hpp>

Operations


PrevUpHomeNext