CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Mar 2009
    Posts
    94

    Question use of vector<int>::value_type?

    Hi,

    I wonder what is the use of value_type?
    If I type
    vector<int>::value_type i;
    i is an int right? But I had to specifiy the int in vector<int> anyway. So what is the use of that?
    I could have done
    int i;
    instead. I guess I am missing something.
    Thank you!

    PS: ok I guess this comes in to play when I get to templates.
    Last edited by w3rd; June 15th, 2009 at 11:02 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured