Dumping contents of a vector/list to cout

Is it possible to do this with just one line of code? Oh yes! Have a look… [sourcecode language=”cpp”]typedef int VT; typedef std::vector VTVec; void Dump( VTVec& VecToPrint, std::ostream& stream, const char* lpszMsg ) { // We will be wrapping every element within a square bracket. // In the end output looks like this… [123] […]
Continue reading…