
8 Sep
2008
8 Sep
'08
7:26 p.m.
Hendrik Schober a écrit :
For the proprietary smart pointer this allocation can be tweaked by passing allocators as template arguments, while 'shared_ptr' seems not to allow this. The use of make_shared should reduce the allocation cost. There is also a version of the constructor that takes an allocator as argument.
I have no idea which of those options would have the best impact. -- Loïc