0

So I want to implement a method like C++11's emplace_back in std vector for a memorypool class that I'm implementing. The idea is that I have a typename T of my memorypool and when the user calls emplace_back, he passes and calls the constructor of T on a memory region I got. I'm not sure how this can be done as it seems to use some inner features of c++ which I'm not aware of. Anyone has a clue?

0 Answers0