¡@

Home 

c++ Programming Glossary: my_capacity

Implementation of Vector in C++ [closed]

http://stackoverflow.com/questions/5159061/implementation-of-vector-in-c

const Vector T private unsigned int my_size unsigned int my_capacity T buffer Your code goes here ... template class T Vector T Vector.. Your code goes here ... template class T Vector T Vector my_capacity 0 my_size 0 buffer 0 template class T Vector T Vector const.. class T Vector T Vector const Vector T v my_size v.my_size my_capacity v.my_capacity buffer new T my_size for int i 0 i my_size i buffer..