A note on C++ type deduction and standard library