operator==,!= (std::discard_block_engine)
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
              
               Numeric array (
               
                valarray
               
               )
              
              | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
              
  | 
             
              
  | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
              
  | 
             
              
  | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
              
  | 
             
              
  | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
              
  | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
              
  | 
             
              
  | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Generation | ||||
| Characteristics | ||||
| Non-member functions | ||||
| 
               
                
                 
                  
                   operator==
                  
                  
                   operator!=
                  
                 
                
                
               
                
                 
                  
                   (C++11)
                  
                 
                 
                  
                   (C++11)
                  
                  
                   (until C++20)
                  
                 
                
                
               | 
            ||||
| 
               
                
                 
                  
                   (C++11)
                  
                 
                 
                  
                   (C++11)
                  
                 
                
                
               | 
            
| 
           
           
            
             friend
            
            
             bool
            
            operator
            
             ==
            
            
             (
            
            
             const
            
            discard_block_engine
            
             &
            
            lhs,
             
         const discard_block_engine & rhs ) ;  | 
         (1) | (C++11以降) | 
| 
           
           
            
             friend
            
            
             bool
            
            operator
            
             !
            
            
             =
            
            
             (
            
            
             const
            
            discard_block_engine
            
             &
            
            lhs,
             
         const discard_block_engine & rhs ) ;  | 
         (2) | 
          
           (C++11以降)
          
           (C++20まで)  | 
        
二つの擬似乱数エンジンアダプタを比較します。二つのエンジンアダプタは、基盤となるエンジンが等しく、内部状態(存在する場合)が等しい場合、つまり任意の回数の operator ( ) の呼び出しに対して同等の値を生成する場合に等しいとみなされます。
これらの関数は通常の unqualified lookup または qualified lookup では可視化されず、 argument-dependent lookup によってのみ、std::discard_block_engine<Engine, p, r>が引数の関連クラスである場合に発見されます。
| 
          
            | 
        (C++20以降) | 
         目次 | 
       
パラメータ
| lhs, rhs | - | 比較対象のエンジンアダプタ | 
戻り値
例外
例外を送出しません。
不具合報告
以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。
| DR | Applied to | Behavior as published | Correct behavior | 
|---|---|---|---|
| LWG 3519 | C++11 | 等価演算子の形式が未指定であった | 隠れフレンドとして指定される |