1 .. Sequences/Views//empty_sequence
21 Represents a sequence containing no elements.
29 #include <boost/mpl/empty_sequence.hpp>
35 |Semantics disclaimer...| |Random Access Sequence|.
37 In the following table, ``s`` is an instance of ``empty_sequence``.
39 +-------------------------------+-----------------------------------------------------------+
40 | Expression | Semantics |
41 +===============================+===========================================================+
42 | ``empty_sequence`` | An empty |Random Access Sequence|. |
43 +-------------------------------+-----------------------------------------------------------+
44 | ``size<s>::type`` | ``size<s>::value == 0``; see |Random Access Sequence|. |
45 +-------------------------------+-----------------------------------------------------------+
53 typedef begin<empty_sequence>::type first;
54 typedef end<empty_sequence>::type last;
56 BOOST_MPL_ASSERT(( is_same<first,last> ));
57 BOOST_MPL_ASSERT_RELATION( size<empty_sequence>::value, ==, 0 );
59 typedef transform_view<
64 BOOST_MPL_ASSERT_RELATION( size<empty_sequence>::value, ==, 0 );
70 |Sequences|, |Views|, |vector|, |list|, |single_view|
73 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
74 Distributed under the Boost Software License, Version 1.0. (See accompanying
75 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)