operators (std::linear_congruential_engine)
template< class UIntType, UIntType a, UIntType c, UIntType m > bool operator==( const linear_congruential_engine<UIntType,a,c,m>& lhs, const linear_congruential_engine<UIntType,a,c,m>& rhs ); | (1) | (since C++11) |
---|---|---|
template< class UIntType, UIntType a, UIntType c, UIntType m > bool operator!=( const linear_congruential_engine<UIntType,a,c,m>& lhs, const linear_congruential_engine<UIntType,a,c,m>& rhs ); | (2) | (since C++11) |
比较两个伪随机数引擎。两个引擎是相等的,如果它们的内部状态是等价的,也就是说,如果它们会为任意数量的调用生成等价的值。operator()
...
参数
lhs, rhs | - | engines to compare |
---|
返回值
1%29true
如果引擎是等价的,false
否则。
2%29true
如果引擎不相等,false
否则。
例外
%280%29
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com