#include <iostream>
#include <stdlib.h>
Go to the source code of this file.
 | 
| template<int p, typename T >  | 
| std::ostream &  | operator<< (std::ostream &os, const Z< p, T > &z) | 
|   | 
| template<int p, typename T >  | 
| std::istream &  | operator>> (std::istream &is, Z< p, T > &z) | 
|   | 
| template<int p, class T >  | 
| Z< p, T >  | operator^ (const Z< p, T > a, const int n) | 
|   | Fast binary exponentiation.  More...
  | 
|   | 
template<int p, typename T > 
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          os,  | 
        
        
           | 
           | 
          const Z< p, T > &  | 
          z  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
template<int p, typename T > 
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          is,  | 
        
        
           | 
           | 
          Z< p, T > &  | 
          z  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
template<int p, class T > 
      
        
          | Z<p,T> operator^  | 
          ( | 
          const Z< p, T >  | 
          a,  | 
        
        
           | 
           | 
          const int  | 
          n  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Fast binary exponentiation.