copy behavior in vector constructed with a initializer list

后端 未结 0 1628
-上瘾入骨i
-上瘾入骨i 2021-02-19 10:17

I realize that initializing a vector with a initializer_list relying on the copy constructor instead of the move constructor. For example, the following code print

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