Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

vector::value_type

 

A type that represents the data type stored in a vector.

typedef typename Allocator::value_type value_type;

value_type is a synonym for the template parameter Type.

Example

// vector_value_type.cpp
// compile with: /EHsc
#include <vector>
#include <iostream>

int main( )
{
   using namespace std;
   vector<int>::value_type AnInt;
   AnInt = 44;
   cout << AnInt << endl;
}
44

Requirements

Header: <vector>

Namespace: std

Show: