I\'m writing a program on a Linux platform that is generating text files that will be viewed on, inevitably, a Windows platform.
Does anyone know why the STL containers don\'t have virtual destructors? As far as I can tell, the only benefits are:
Just now, I\'m reading Josuttis\' STL book. As far as I know -- c++ vector is a c-array that can be reallocated. So, I understand, why after push_back() all iterators and references can become invali
I\'m looking for a C++ container that\'s a cross between boost::array, boost::scoped_array and std::vector.
Is there a way to automatically lock an STL container on access, without having to lock and release 开发者_如何学JAVAaround it?The currrent C++ standard does not say anything about thread safety for S
I\'ve run into some annoying issues with const-correctness in some templated code, that ultimately boils down to the following observation: for some reason, given an STL-ish Container type T, const ty
I want to be able to insert an element in the middle (or another location) in the vector without overwriting existing element.
How do I tell STL, specifically for the method resize() in vector, to initialize objects with a constructor other than default, and with which parameters?
What\'s the difference between std::string and std::basic_string? And why are both n开发者_StackOverflow社区eeded?std::basic_string is a class template for making strings out of character types, std::
I\'m having a problem s开发者_开发知识库orting my derived classes with the STL sort function.