operators (std::mersenne_twister_engine)
运算符=,%21=%28std::Mersenne[医]捻线机[医]发动机%29
template< class UIntType, size_t w, size_t n, size_t m, size_t r, UIntType a, size_t u, UIntType d, size_t s, UIntType b, size_t t, UIntType c, size_t l, UIntType f > bool operator==( const mersenne_twister_engine | (1) | (since C++11) |
---|---|---|
template< class UIntType, size_t w, size_t n, size_t m, size_t r, UIntType a, size_t u, UIntType d, size_t s, UIntType b, size_t t, UIntType c, size_t l, UIntType f > bool operator!=( const mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>& lhs, const mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>& 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。
http://en.cppreference.com/w/cpp/数值/随机/Mersenne[医]捻线机[医]发动机/操作员[医]CMP