Tuple-Like

Description

A type models Tuple-Like if its instances are fixed-length heterogeneous sequences of objects of specified types, and if it provides specializations or overloads of the accessor templates tuple_size, tuple_element and tuple_get (see below).

Refinement of

Associated Types

Notation

T-A type which is a model of Tuple-Like
t-Object of type T
N-Integral constant expression

Valid Expressions / Semantics

ExpressionExpression TypeSemantics
boost::io::tuple_size<T>::type
Integral constant expression Returns the number of elements in t
boost::io::tuple_element<N, T>::type
The type of the Nth element of t -
boost::io::tuple_get<N>(t)
  • If t is mutable, a type whose instances are implicitly convertable to
        tuple_element<N, T>::type
    and which may be assigned objects of type
        tuple_element<N, T>::type
  • const tuple_element<N, T>::type&, otherwise
Returns an object suitable for accessing the Nth element of t

Models


Sha'arei Tefila, an Orthodox Shul (Synagogue) in Salt Lake City, Utah Chabad Lubavitch of Utah