If it's stupid but works, it isn't stupid.
Template Functions
  • Write the function with a placeholder



  • When using the function, compiler may deduce the type you're using



@темы: C++, C++ Template Functions