3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/long.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Data Types / Numeric / long_ |
template<
long N
>
struct[long\_](./long.html){
//_unspecified_// ...
};
An Integral Constant wrapper for long.
#include <[boost/mpl/long.hpp](../../../../boost/mpl/long.hpp)>
| Parameter | Requirement | Description |
|---|---|---|
| N | An integral constant | A value to wrap. |
The semantics of an expression are defined only where they differ from, or are not defined in Integral Constant.
For arbitrary integral constant n:
| Expression | Semantics |
|---|---|
| long_<c> | An Integral Constant x such that x::value == c and x::value_type is identical to long. |
typedef[long\_](./long.html)<8> eight;[BOOST\_MPL\_ASSERT](./assert.html)(( is_same< eight::[value\_type](./value-type.html), long > ));[BOOST\_MPL\_ASSERT](./assert.html)(( is_same< eight::type, eight > ));[BOOST\_MPL\_ASSERT](./assert.html)(( is_same<[next](./next.html)< eight >::type,[long\_](./long.html)<9> > ));[BOOST\_MPL\_ASSERT](./assert.html)(( is_same<[prior](./prior.html)< eight >::type,[long\_](./long.html)<7> > ));[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)( (eight::value), ==, 8 );
assert( eight() == 8 );
Data Types, Integral Constant, int_, size_t, integral_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) |