allocator
C++ Design pattern for extending an arbitrary standard conform allocator
I\'m currently searching for the best way to extend an arbitrary standard conform allocator type. To be clear: I don\'t want to write a custom allocator. I just want to \"add\" a specific extension or[详细]
2023-03-12 08:51 分类:问答Allocators with in-memory compression
I am wondering, are there projects/at least some research on combination of in-memory compression and memory allocators (at the expense of some speed, of course)?[详细]
2023-03-10 05:59 分类:问答suggestions for improving an allocator algorithm implementation
I have a Visual Studio 2008 C++ application where I\'m using a custom allocator for standard containers such that their memory comes from a Memory Mapped File rather than the heap. This allocator is u[详细]
2023-03-07 00:29 分类:问答Standard compliant custom allocator
Is OK to throw an exception when 0 is passed to allocate method? Thank you. P.S. If n == 0, the return value is[详细]
2023-03-06 23:31 分类:问答Does an allocator.construct loop equal std::uninitialized_copy?
In this context T isa certain type and allocator is an allocator object for that type. By default it is std::allocator<T> but this is not necessarily true.[详细]
2023-03-06 15:42 分类:问答transferring object ownership on std::allocator rebind
I have a Visual Studio 2008 C++ application where I am implementing a replacement for the standard allocator used in containers like开发者_StackOverflow社区 std::vector. But, I\'ve run in to an issue.[详细]
2023-03-03 20:02 分类:问答Requirements on standard library allocator pointer types
I am trying to write a quadtree sparse matrix class. In short, a quadtree_matrix<T> is either the zero matrix or a quadruple (ne, nw, se, sw) of quadtree_matrix<T>.[详细]
2023-02-20 07:55 分类:问答Using allocators
Are these versions of new and delete are exception safe? Any possible pitfalls? Assume that customized_allocator_type is STL compatible. Also assume that the allocator\'s constructor doesn\'t have an[详细]
2023-02-20 05:37 分类:问答Why is deleted memory unable to be reused
I am using C++ on Windows 7 with MSVC 9.0, and have also been able to test and reproduce on Windows XP SP3 with MSVC 9.0.[详细]
2023-02-19 23:48 分类:问答need to write shared memory allocator for c++ std::vector
Please help to write c++ allocator for std::vector< nIcon*> class. All examples i find shows just what methods i need to overwrite, not code examples.[详细]
2023-02-17 02:56 分类:问答