// Listing 6: decltype std::vector myVecInt={1}; std::vector myDoubleInt={1.1}; decltype(myVecInt[0]*myDoubleInt[0]) myDouble = 2.1;