Daily bit(e) of C++ | std::plus, std::minus, std::multiplies, std::divides, std::modulus and std::negate
Daily bit(e) of C++ #172, The arithmetic operator wrappers: std::plus, std::minus, std::multiplies, std::divides, std::modulus and std::negate.
The std::plus, std::minus, std::multiplies, std::divides, std::modulus and std::negate are function objects from the <functional> header that wrap the corresponding arithmetic operators.
Since C++14, these objects also provide a void specialization that relies on type deduction for both arguments.
The `<>` is not required though. It's better to omit it for clarity. I prefer `std::plus{}`.