std::subtract_with_carry_engine<UIntType,w,s,r>:: max
      From cppreference.net
     
     
      
       <
       
        cpp
       
        |
       
        numeric
       
        |
       
        random
       
        |
       
        subtract with carry engine
       
      
     
     
        
         C++
        
        
         
          
           
          
          
         
        
       
       
        
         Numerics library
        
        
         
          
           
            
          
          
          
         
        
       
       | 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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
        
         Pseudo-random number generation
        
        
         
          
           
            
          
          
          
         
        
       
       | 
 | 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
        
         
          std::subtract_with_carry_engine
         
        
        
         
          
           
            
          
          
          
         
        
       
       | Member functions | ||||
| Generation | ||||
| Characteristics | ||||
| 
                
                 
                  
                   subtract_with_carry_engine::max
                  
                 
                
                | ||||
| Non-member functions | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                 
                  
                   (C++11)
                  
                  
                   (until C++20)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                 
                  
                   (C++11)
                  
                 
                
                | 
| 
           
            
             static
            
            
             constexpr
            
            result_type max
            
             (
            
            
             )
            
            
             ;
            
           
           | (since C++11) | |
Returns the maximum value potentially generated by the random-number engine.
Return value
       
        
         \(\scriptsize 2^w-1 \)
        
        
         2
         
          w
          
         
         -1
        
       
      
Complexity
Constant.
See also
| 
           
            
             
              [static]
             
            
           
           | gets the smallest possible value in the output range (public static member function) |