[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/utility/functional/divides [Back]  [Original]

std::divides cppreference.com
cppreference.com

std::divides

cppreference.com
 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
 
(C++20)(C++23)
(C++11)
(C++17)(C++23)
(C++20)
(C++11)(C++11)
(C++14)
(C++14)
(C++14)
(C++14)  
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)

( C++17*)
( C++17*)
( C++17*)( C++17*)( C++17*)( C++17*)
( C++20*)
( C++20*)
( C++17*)( C++17*)
( C++17*)( C++17*)

( C++17*)
( C++20*)
( C++20*)
 
<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>
template< class T > struct divides;
( C++14)
template< class T = void > struct divides;
( C++14)

. operator/ T.

std::divides, T , .

, x / y
( ) []
( C++14)

result_type ( C++17)( C++20) T
first_argument_type ( C++17)( C++20) T
second_argument_type ( C++17)( C++20) T

std::binary_function<T, T, T>.

( C++11)

-

operator()

(public -)

std::divides::operator()

<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>
T operator()( const T& lhs, const T& rhs ) const;
( C++14)
constexpr T operator()( const T& lhs, const T& rhs ) const;
( C++14)

lhs rhs.

lhs, rhs

lhs / rhs.

, .

constexpr T operator()(const T &lhs, const T &rhs) const 
{
    return lhs / rhs;
}

Web Proxy Viewer  |  New URL  |  Original Page