Why C++ standard string copy is faster than string move?

前端 未结 0 663
天命终不由人
天命终不由人 2020-12-25 09:27

Thought string copy operation should be slower than move, but the benchmark shows it\'s faster.

static void StringCreationMove(benchmark::State & state) {         


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