list::value_type
リスト内に格納されているデータ型を表す型。
typedef typename Allocator::value_type value_type;
解説
value_type は、テンプレート パラメーター Type のシノニムです。
使用例
// list_value_type.cpp
// compile with: /EHsc
#include <list>
#include <iostream>
int main( )
{
using namespace std;
list<int>::value_type AnInt;
AnInt = 44;
cout << AnInt << endl;
}
必要条件
ヘッダー: <list>
名前空間: std