3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/empty-sequence.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Views / empty_sequence |
struct[empty\_sequence](./empty-sequence.html){
//_unspecified_//_..._};
Represents a sequence containing no elements.
#include <[boost/mpl/empty\_sequence.hpp](../../../../boost/mpl/empty_sequence.hpp)>
The semantics of an expression are defined only where they differ from, or are not defined in Random Access Sequence.
In the following table, s is an instance of empty_sequence.
| Expression | Semantics |
|---|---|
| empty_sequence | An empty Random Access Sequence. |
| size<s>::type | size<s>::value == 0; see Random Access Sequence. |
typedef[begin](./begin.html)<[empty\_sequence](./empty-sequence.html)>::type first;
typedef[end](./end.html)<[empty\_sequence](./empty-sequence.html)>::type last;[BOOST\_MPL\_ASSERT](./assert.html)(( is_same<first,last> ));[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([size](./size.html)<[empty\_sequence](./empty-sequence.html)>::value, ==, 0 );
typedef[transform\_view](./transform-view.html)<[empty\_sequence](./empty-sequence.html), add_pointer<_>
> empty_view;[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([size](./size.html)<[empty\_sequence](./empty-sequence.html)>::value, ==, 0 );
Sequences, Views, vector, list, single_view
| Prev Next | Back Along | Up Home | Full TOC |
Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |