I think the value_type of vector<intshould be int and the value_type
of vector<intshould be int*. But I am not 100% sure,
1. how to write a program to verify this idea;
2. where to find the definition that the value_type of interator of
vector<intis int*.
It is appreciated if you could help.
Expand|Select|Wrap|Line Numbers
- #include <vector>
- using namespace std;
- int main (int argc, char** argv)
- {
- vector<int>::value_type; // should be int ?
- vector<int>::iterator::value_type; // should be int* ?
- return 0;
- }
thanks in advance,
George