Closed githejie closed 3 months ago
Perhaps some compilers can optimize insert at compile time, but replacing insert with emplace can avoid unnecessary copy construction or move construction at the C++ syntax level.
Perhaps some compilers can optimize insert at compile time, but replacing insert with emplace can avoid unnecessary copy construction or move construction at the C++ syntax level.