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 for the latest Boost documentation.
PrevUpHomeNext

Macro BOOST_STL_INTERFACES_STATIC_ASSERT_CONCEPT

BOOST_STL_INTERFACES_STATIC_ASSERT_CONCEPT

Synopsis

// In header: <boost/stl_interfaces/iterator_interface.hpp>

BOOST_STL_INTERFACES_STATIC_ASSERT_CONCEPT(type, concept_name)

Description

static_asserts that type type models concept concept_name. This is useful for checking that an iterator, view, etc. that you write using one of the *_interface templates models the right C++ concept.

For example: BOOST_STL_INTERFACES_STATIC_ASSERT_CONCEPT(my_iter, std::input_iterator).

[Note] Note

This macro expands to nothing when __cpp_lib_concepts is not defined.


PrevUpHomeNext