Back to Arangodb

is_sequence

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

3.12.9.13.1 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Intrinsic Metafunctions / is_sequence |

is_sequence

Synopsis

template<
      typename X
    >
struct[is\_sequence](./is-sequence.html){
    typedef_unspecified_type;
};

Description

Returns a boolean Integral Constant c such that c::value == true if and only if X is a model of Forward Sequence.

#include <[boost/mpl/is\_sequence.hpp](../../../../boost/mpl/is_sequence.hpp)>

Parameters

ParameterRequirementDescription
XAny typeThe type to query.

Expression semantics

typedef[is\_sequence](./is-sequence.html)<X>::type c;

| Return type: |

Boolean Integral Constant.

| | Semantics: |

Equivalent to

typedef[not\_](./not.html)< is_same<[begin](./begin.html)<T>::type,[void\_](./void.html)> >::type c;

|

Complexity

Amortized constant time.

Example

struct UDT {};[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([is\_sequence](./is-sequence.html)< std::[vector](./vector.html)<int> > ));[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([is\_sequence](./is-sequence.html)< int > ));[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([is\_sequence](./is-sequence.html)< int& > ));[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([is\_sequence](./is-sequence.html)< UDT > ));[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([is\_sequence](./is-sequence.html)< UDT* > ));[BOOST\_MPL\_ASSERT](./assert.html)(([is\_sequence](./is-sequence.html)<[range\_c](./range-c.html)<int,0,0> > ));[BOOST\_MPL\_ASSERT](./assert.html)(([is\_sequence](./is-sequence.html)<[list](./list.html)<> > ));[BOOST\_MPL\_ASSERT](./assert.html)(([is\_sequence](./is-sequence.html)<[list](./list.html)<int> > ));[BOOST\_MPL\_ASSERT](./assert.html)(([is\_sequence](./is-sequence.html)<[vector](./vector.html)<> > ));[BOOST\_MPL\_ASSERT](./assert.html)(([is\_sequence](./is-sequence.html)<[vector](./vector.html)<int> > ));

See also

Forward Sequence, begin, end, vector, list, range_c

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