Month: March 2011

C++ Template Name Madness

STL vectors can act as typical c-style arrays. To cast from vector<T> to T*, simply take the address of the first element.