⚡ Build the skills to land top-paying quant jobs. Offer ends in 23d 14h 02m 28s23 days 14 hours 2 minutes 28 seconds.
⚡ Build the skills to land top-paying quant jobs. Offer ends in 23d 14h 02m 28s23 days 14 hours 2 minutes 28 seconds.

Sign in to watch this lesson
Value Categories, Move and Perfect Forwarding · 3:29
Two ampersands don't always mean rvalue reference. On a deduced template parameter written exactly as T&&, they make a forwarding reference that binds to anything. We spot the impostors (vector<T>&&, const T&&, a class template's push_back), ask clang what T becomes for lvalues and rvalues, watch Widget& && collapse to Widget&, and see that auto&& follows the same rules.