boost-ptr-container
STL algorithm to delete all the objects in a container?
Is there a STL utility/algorithm to do delete *the_object_iterator; on all the objects? So that I can clear() safely? The STL container is a set and the objects are pointers to C++ classes created wit[详细]
2023-04-09 04:31 分类:问答Storing pointers to const objects in boost::ptr_unordered_map
I can\'t seem to make boost::ptr_unordered_map<uint32_t, const Foo> work - the underlying implementation looks like it\'s casting things to a void*.[详细]
2023-03-05 15:08 分类:问答glibc detected : free(): invalid pointer: with simple boost::ptr_map example
I know there are scores of questions with \"* glibc detected * free(): invalid pointer\", but the following is a minimalist example with boost::ptr_map:[详细]
2023-03-01 11:02 分类:问答Is there an easy way to make `boost::ptr_vector` more debugger friendly in Visual Studio?
I\'m considering using boost::ptr_container as a result of the responses from this question. My biggest problem with the library is that I cannot view the contents of the collection in the debugger, b[详细]
2023-02-01 18:46 分类:问答ptr_map inserting
I have some predefined type which inherits boost::noncopyable (so I have to store the pointer at these objects). I use a boost::ptr_map. As I know, the second argument in it is already a pointer. So,[详细]
2023-01-04 11:53 分类:问答