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