3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/is-sequence.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Intrinsic Metafunctions / is_sequence |
template<
typename X
>
struct[is\_sequence](./is-sequence.html){
typedef_unspecified_type;
};
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)>
| Parameter | Requirement | Description |
|---|---|---|
| X | Any type | The type to query. |
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;
|
Amortized constant time.
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> > ));
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) |