Back to Arangodb

Integral Sequence Wrapper

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

3.12.9.13.7 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Concepts / Integral Sequence Wrapper |

Integral Sequence Wrapper

Description

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>

Expression requirements

In the following table and subsequent specifications, seq is a placeholder token for the Integral Sequence Wrapper's underlying sequence's name.

ExpressionTypeComplexity
seq_c<T,_c_1,_c_2,... _c_n>Forward SequenceAmortized constant time.
seq_c<T,_c_1,_c_2,... _c_n>::typeForward SequenceAmortized constant time.
seq_c<T,_c_1,_c_2,... _c_n>::value_typeAn integral typeAmortized constant time.
seq_n__c<T,_c_1,_c_2,... _c_n>Forward SequenceAmortized constant time.
seq_n__c<T,_c_1,_c_2,... _c_n>::typeForward SequenceAmortized constant time.
seq_n__c<T,_c_1,_c_2,... _c_n>::value_typeAn integral typeAmortized constant time.

Expression semantics

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

Models

See also

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