Back to Arangodb

empty_sequence

3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/empty-sequence.html

3.12.9.12.4 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Views / empty_sequence |

empty_sequence

Synopsis

struct[empty\_sequence](./empty-sequence.html){
    //_unspecified_//_..._};

Description

Represents a sequence containing no elements.

#include <[boost/mpl/empty\_sequence.hpp](../../../../boost/mpl/empty_sequence.hpp)>

Expression semantics

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.

ExpressionSemantics
empty_sequenceAn empty Random Access Sequence.
size<s>::typesize<s>::value == 0; see Random Access Sequence.

Example

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 );

See also

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) |