A binary function object that returns the result of dividing its two operands.
Standards<ToolKit>
#include <functional> template< class T > struct divides : binary_function< T, T, T >
/
#include <iostream> #include <functional> #include <numeric> int input[ 3 ] = { 2, 3, 4 }; void main() { int result = accumulate( input, input + 3, 48, divides< int >() ); cout << "result = " << result << "\n"; } result = 2
Copyright©1994-2026 Recursion Software LLC All Rights Reserved - For use by licensed users only.