[Home]list

Synopsis

template<
      typename T1 = implementation-defined
    , typename T2 = implementation-defined
    , ...
    , typename Tn = implementation-defined
    >
struct list
{
};

詳細

list は型の 順シーケンス である. そして,先頭への要素の定数時間挿入と削除(push_front), 末尾,中間要素の線形時間の挿入と削除 (insert/erase アルゴリズム) をサポートする拡張シーケンスでもある.

Example

typedef list<float,double,long double> floats;
typedef push_front<floating_types,my_float>::type ext_floats;
BOOST_STATIC_ASSERT((boost::is_same< front<ext_floats>::type, my_float >::value));

Definition

#include "boost/mpl/list.hpp"
#include "boost/mpl/list/list0.hpp"
#include "boost/mpl/list/list10.hpp"
...
#include "boost/mpl/list/list50.hpp"

See also

Forward Sequence, list_c, vector, vector_c, range_c


Table of Contents
Last edited July 17, 2002 8:05 am