operator==,!=(std::normal_distribution)
提供: cppreference.com
template< class ResultType > bool operator==( const normal_distribution<ResultType>& lhs, const normal_distribution<ResultType>& rhs ); |
(1) | |
template< class ResultType > bool operator!=( const normal_distribution<ResultType>& lhs, const normal_distribution<ResultType>& rhs ); |
(2) | |
2つの分布オブジェクトを比較します。 パラメータ値と内部状態が同じであれば、2つの分布オブジェクトは等しくなります。
1) 2つの分布オブジェクトが等しいかどうか比較します。
2) 2つの分布オブジェクトが等しくないかどうか比較します。
引数
| lhs, rhs | - | 比較する分布オブジェクト |
戻り値
1) 分布オブジェクトが等しい場合は true、そうでなければ false。
2) 分布オブジェクトが等しくない場合は true、そうでなければ false。
計算量
一定。