.. Sequences/Views//empty_sequence empty_sequence ============== Synopsis -------- .. parsed-literal:: struct empty_sequence { // |unspecified| // |...| }; Description ----------- Represents a sequence containing no elements. Header ------ .. parsed-literal:: #include Expression semantics -------------------- |Semantics disclaimer...| |Random Access Sequence|. In the following table, ``s`` is an instance of ``empty_sequence``. +-------------------------------+-----------------------------------------------------------+ | Expression | Semantics | +===============================+===========================================================+ | ``empty_sequence`` | An empty |Random Access Sequence|. | +-------------------------------+-----------------------------------------------------------+ | ``size::type`` | ``size::value == 0``; see |Random Access Sequence|. | +-------------------------------+-----------------------------------------------------------+ Example ------- .. parsed-literal:: typedef begin::type first; typedef end::type last; BOOST_MPL_ASSERT(( is_same )); BOOST_MPL_ASSERT_RELATION( size::value, ==, 0 ); typedef transform_view< empty_sequence , add_pointer<_> > empty_view; BOOST_MPL_ASSERT_RELATION( size::value, ==, 0 ); See also -------- |Sequences|, |Views|, |vector|, |list|, |single_view|