list::value_type

表示資料型別的型別程式庫] 清單中的資訊。

typedef typename Allocator::value_type value_type;

備註

value_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

請參閱

參考

list Class

標準樣板程式庫