¡@

Home 

c++ Programming Glossary: vec_base

Is it ok to cast a STL container with Base type to Derived type?

http://stackoverflow.com/questions/5460371/is-it-ok-to-cast-a-stl-container-with-base-type-to-derived-type

Base Code class Derive public Base Code Usage vector Base vec_base new vector Base Add some Derive type data to vec_base vector.. Base vec_base new vector Base Add some Derive type data to vec_base vector Derive vec_derive vector Derive vec_base Using elements.. data to vec_base vector Derive vec_derive vector Derive vec_base Using elements as Derive pointers. Works fine. Is this ok It..