list
template<
typename T1 = implementation-defined
, typename T2 = implementation-defined
, ...
, typename Tn = implementation-defined
>
struct list
{
};
list は型の 順シーケンス である.
そして,先頭への要素の定数時間挿入と削除(push_front),
末尾,中間要素の線形時間の挿入と削除
(insert/erase
アルゴリズム)
をサポートする拡張シーケンスでもある.
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));
#include "boost/mpl/list.hpp" #include "boost/mpl/list/list0.hpp" #include "boost/mpl/list/list10.hpp" ... #include "boost/mpl/list/list50.hpp"
Forward Sequence, list_c, vector, vector_c, range_c