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 to view this page for the latest version.
PrevUpHomeNext

grammar::is_rule

Determine if T meets the requirements of Rule.

Synopsis

Defined in header <boost/url/grammar/type_traits.hpp>

template<
    class T>
using is_rule = see-below;
Description

This is an alias for std::true_type if T meets the requirements, otherwise it is an alias for std::false_type.

Example
struct U
{
    struct value_type;

    auto
    parse(
        char const *& it,
        char const * end) const ->
            system::result<value_type>
};

static_assert ( is_rule<U>::value, "Requirements not met" );
See Also

parse.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext