RValue-Reference, Move Constructor and Perfect Forwarding

Categories: cpp
Background I’ve thought I was good at C++, however, after my friend asking me about rvalue, I realized that I knew nothing about the strength of C++. In this article, I won’t introduce either rvalue or move constructor. Instead, I will describe and dig into his question and try to explain what benefits the move constructor provides. Question For std::map<Key, T, Compare, Allocator>::insert, there are two overloadings: since C++11

Read More →