|
-
June 15th, 2009, 10:58 AM
#1
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|