operators (std::subtract_with_carry_engine)
template< class UIntType, size_t w, size_t s, size_t r > bool operator==( const subtract_with_carry_engine<UIntType,w,s,r>& lhs, const subtract_with_carry_engine<UIntType,w,s,r>& rhs ); | (1) | (since C++11) |
---|---|---|
template< class UIntType, size_t w, size_t s, size_t r > bool operator!=( const subtract_with_carry_engine<UIntType,w,s,r>& lhs, const subtract_with_carry_engine<UIntType,w,s,r>& 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