C++ Template Meta Programming | decltype and std::declval

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024
  • In this video, I'll explain the C++ keyword decltype, and the "function" std::declval. std::declval, mind you, is not a regular function. Calling it would result in a compiler error (a static assertion) unless you use it in a context where it is 'allowed' such as specifying return types, within decltype.

ความคิดเห็น •