operator==,!=(std::independent_bits_engine)

 
 
数值库
常用数学函数
数学特殊函数 (C++17)
数学常数 (C++20)
浮点环境 (C++11)
复数
数值数组
伪随机数生成
编译时有理数算术 (C++11)
数值算法
(C++17)
(C++17)
插值
(C++20)
(C++20)
通用数值运算
(C++11)
位操作
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
 
 
 
template< class Engine, size_t w, class UIntType >

bool operator==( const independent_bits_engine<Engine,w,UIntType>& lhs,

                 const independent_bits_engine<Engine,w,UIntType>& rhs );
(1) (C++11 起)
template< class Engine, size_t w, class UIntType >

bool operator!=( const independent_bits_engine<Engine,w,UIntType>& lhs,

                 const independent_bits_engine<Engine,w,UIntType>& rhs );
(2) (C++11 起)

比较二个随机数引擎适配器。若二个适配器的底层引擎相等,且其内部状态(若存在)相等,即若它们会对任何数量的 operator() 调用产生等价的值,则它们相等。

参数

lhs, rhs - 要比较的引擎适配器

返回值

1) 若引擎适配器等价则为 true ,否则为 false
2) 若引擎适配器不等价则为 true ,否则为 false

异常

(无)