3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/integral-sequence-wrapper.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Concepts / Integral Sequence Wrapper |
An Integral Sequence Wrapper is a class template that provides a concise interface for creating a corresponding sequence of Integral Constants. In particular, assuming that seq is a name of the wrapper's underlying sequence and _c_1,_c_2,... _c_n are integral constants of an integral type T to be stored in the sequence, the wrapper provides us with the following notation:
seq_c<T,_c_1,_c_2,... _c_n>
If seq is a Variadic Sequence, numbered wrapper forms are also avaialable:
seq_n__c<T,_c_1,_c_2,... _c_n>
In the following table and subsequent specifications, seq is a placeholder token for the Integral Sequence Wrapper's underlying sequence's name.
| Expression | Type | Complexity |
|---|---|---|
| seq_c<T,_c_1,_c_2,... _c_n> | Forward Sequence | Amortized constant time. |
| seq_c<T,_c_1,_c_2,... _c_n>::type | Forward Sequence | Amortized constant time. |
| seq_c<T,_c_1,_c_2,... _c_n>::value_type | An integral type | Amortized constant time. |
| seq_n__c<T,_c_1,_c_2,... _c_n> | Forward Sequence | Amortized constant time. |
| seq_n__c<T,_c_1,_c_2,... _c_n>::type | Forward Sequence | Amortized constant time. |
| seq_n__c<T,_c_1,_c_2,... _c_n>::value_type | An integral type | Amortized constant time. |
typedef seq_c<T,_c_1,_c_2,..._c_n> s;
typedef seq_n__c<T,_c_1,_c_2,..._c_n> s;
| Semantics: | s is a sequence seq of integral constant wrappers integral_c<T,_c_1>, integral_c<T,_c_2>, ... integral_c<T,_c_n>. | | Postcondition: | size<s>::value == n. |
typedef seq_c<T,_c_1,_c_2,..._c_n>::type s;
typedef seq_n__c<T,_c_1,_c_2,..._c_n>::type s;
| Semantics: | s is identical to seq_n_<integral_c<T,_c_1>,integral_c<T,_c_2>, ... integral_c<T,_c_n> >. |
typedef seq_c<T,_c_1,_c_2,..._c_n>::[value\_type](./value-type.html)t;
typedef seq_n__c<T,_c_1,_c_2,..._c_n>::[value\_type](./value-type.html)t;
| Semantics: | is_same<t,T>::value == true. |
Sequences, Variadic Sequence, Integral Constant
| 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) |