...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
BOOST_STL_INTERFACES_STATIC_ASSERT_CONCEPT
// In header: <boost/stl_interfaces/iterator_interface.hpp>
BOOST_STL_INTERFACES_STATIC_ASSERT_CONCEPT(type, concept_name)
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 | |
---|---|
This macro expands to nothing when |