...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Front Page / Sequences / Intrinsic Metafunctions / empty |
Returns an Integral Constant c such that c::value == true if and only if the sequence is empty.
#include <boost/mpl/empty.hpp>
Parameter | Requirement | Description |
---|---|---|
Sequence | Forward Sequence | A sequence to test. |
For any Forward Sequence s:
typedef empty::type c;
Return type: | Boolean Integral Constant. |
---|---|
Semantics: | Equivalent to typedef is_same< begin |
Postcondition: | empty |
Amortized constant time.
typedef range_cempty_range; typedef vector types; BOOST_MPL_ASSERT( empty ); BOOST_MPL_ASSERT_NOT( empty );