A little "garbage collector" for your project [Tip/Trick]
Posted: 1 Aug 2010
Updated: 1 Aug 2010
Rating: 4.83/5
Votes: 6
Popularity: 3.76
Licence: The Code Project Open License (CPOL)
Bookmarked: 1
Downloaded: 0
Combining a smart pointer with a collection we can get all the functionality that the original author wrote a custom class for, and a bit more:typedef std::vector> garbage_collector;Er, that's it. So how would you use this? Say you wanted to use character arrays as...