I want a pair<A,B>*. make_pair(a,b) will give me a pair<A,B> (note the pair isn’t a pointer). Is there a standard way to make a pair pointer? I tried adding new before after and in between the two words and it doesn’t appear to exist.
I want a pair<A,B>* . make_pair(a,b) will give me a pair<A,B> (note the pair
Share
There isn’t. You can roll your own:
But you might want to add allocator customization to it.