表示数据类型的类型在、向量、双端队列存储状态。
typedef typename Allocator::value_type value_type;
备注
value_type 是模板参数的 ***** 类型 *****同义词。
示例
// deque_value_type.cpp
// compile with: /EHsc
#include <deque>
#include <iostream>
int main( )
{
using namespace std;
deque<int>::value_type AnInt;
AnInt = 44;
cout << AnInt << endl;
}
要求
标头: <deque>
命名空间: std