K
Karl Napf
Hi, I'm wondering why allocators only have a "copy-construct" method,
but no method for default construction. For large objects that shall
be initialized using the default constructor, this seems to be quite
inefficient since one first has to create a temporary object which is
then copied to the allocated space. Any ideas how to avoid this?
Thanks and regards, Karl.
but no method for default construction. For large objects that shall
be initialized using the default constructor, this seems to be quite
inefficient since one first has to create a temporary object which is
then copied to the allocated space. Any ideas how to avoid this?
Thanks and regards, Karl.