阅读背景:

在c ++模板生成的类层次结构中按类参数类型匹配

来源:互联网 

Intro

I am working on a custom memory allocator and need to add some bookkeeping info to the header of each allocated chunk. There are several different chunk types and the bookkeeping info differs as well. For instance, for chunks shared between threads there is a need to add a reference counter, for chunks used by single thread there is no such need. For chunks taken from a memory pool there is a need to keep a reference to the originating pool, for chunks taken from the free store there is no such need.I am working on a custom memory allocat




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: