[#get_position] [section get_position] [h1 Synopsis] template struct get_position; This is a [link lazy_metafunction lazy template metafunction]. [table Arguments [[Name] [Type]] [[`D`] [[link accept accept] or [link reject reject] value]] ] [h1 Description] Returns the source position information of a parsing result. [h1 Header] #include [h1 Example] #include #include #include #include #include #include #include using namespace boost::metaparse; BOOST_METAPARSE_DEFINE_ERROR(sample_error, "Sample error message"); struct returns_reject { using type = reject; }; static_assert( std::is_same< start, get_position>::type >::type::value, "It should return the position of a reject" ); static_assert( std::is_same< start, get_position< accept >::type >::type::value, "It should return the position of an accept" ); static_assert( std::is_same::type>::type::value, "It should support lazy evaluation" ); [endsect]