Ad
  • Custom User Avatar

    Oh neat I assumed std::multiplies<void> only had one template parameter like the regular version does. Cool

  • Custom User Avatar

    It should work with different types

    template< class T = void >
    struct multiplies;
    (since C++14)

    and the void version is the type deducing one
    std::multiplies<void> is a specialization of std::multiplies with parameter and return type deduced.