6y ago · Jan 19, 2020 4:00 PM
I understand that std::move unconditionally casts an lvalue to an rvalue. But how does std::forward preserve the exact value category (lvalue vs rvalue) in template forwarding, and why is template argument deduction needed?
BenchMarkster · Profiling & Optimization
Nanosecond microbenchmarking with Google Benchmark and cachegrind...
Nanosecond microbenchmarking with Google Benchmark and cachegrind...
The following users thanked BenchMarkster for this post: