How std::vector know whether it can utilize move semantics or not when it needs reallocation

后端 未结 0 1425
無奈伤痛
無奈伤痛 2021-02-10 10:18

I guess that std::vector uses allocator_traits::construct when it copy/moves the elements into the reallocated buffer.
Then I think that it needs t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题