operator==,!=(std::negative_binomial_distribution)
来自cppreference.com
< cpp | numeric | random | negative binomial distribution
friend bool operator==( const negative_binomial_distribution& lhs, const negative_binomial_distribution& rhs ); |
(1) | (C++11 起) |
friend bool operator!=( const negative_binomial_distribution& lhs, const negative_binomial_distribution& rhs ); |
(2) | (C++11 起) (C++20 前) |
比较两个分布对象。参数值和内部状态相同时两个分布对象相等。
1) 比较两个分布对象是否相等。
2) 比较两个分布对象是否不等。
这些函数对常规的无限定或有限定查找不可见,而只能在 std::negative_binomial_distribution<ResultType> 为实参的关联类时由实参依赖查找找到。
|
(C++20 起) |
目录 |