#include <iostream>
#include <iomanip>
#include "JTools/JTuple.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JTOOLS::JTuple class. 
- Author
 - mdejong 
 
Definition in file JTuple.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 17 of file JTuple.cc.
   25     JParser<> zap(
"Example program to test tuple class.");
 
   31   catch(
const exception &error) {
 
   32     FATAL(error.what() << endl);
 
   41     JTuple<typelist> A(+1, +2, +0.9999);
 
   42     JTuple<typelist> B(-A);
 
   44     cout << A.first         << endl;
 
   45     cout << A.second.first  << endl;
 
   46     cout << A.second.second << endl;
 
   48     cout << 
"A     =  " << showpos   <<  A  << endl;
 
   49     cout << 
"B     =  " << showpos   <<  B  << endl;
 
   50     cout << 
"A + B =  " << noshowpos << A+B << endl;
 
   52     cout << 
"A == A ? " << (A == A) << endl;
 
   53     cout << 
"A == B ? " << (A == B) << endl;
 
   68     cout << 
"A     =  " <<  A  << endl;
 
   69     cout << 
"B     =  " <<  B  << endl;
 
   70     cout << 
"A + B =  " << A+B << endl;   
 
   71     cout << 
"A == A ? " << (A == A) << endl;
 
   72     cout << 
"A == B ? " << (A == B) << endl;