/usr/share/doc/libntl-dev/NTL/pair.txt is in libntl-dev 9.9.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | /**************************************************************************\
MODULE: pair
SUMMARY:
Pair templates.
The decalaration
Pair<S,T> p;
creates a pair object using the default constructors for S and T. The
member p.a is the first component (of type S) and the member p.b is
the second component (of type T).
\**************************************************************************/
#include <NTL/tools.h>
template<class S, class T>
class Pair {
public:
S a;
T b;
Pair();
// default constructor...invokes default constructors for S and T
Pair(const Pair<S,T>& x); // copy
Pair& operator=(const Pair<S,T>& x); // assignment
Pair(const S& x, const T& y); // initialize with (x, y)
~Pair();
// destructor...invokes destructors for S and T
};
template<class S, class T>
Pair<S,T> cons(const S& x, const T& y);
// returns Pair<S,T>(x, y)
/**************************************************************************\
Input/Output
The I/O format for a Pair is
[a b]
\**************************************************************************/
template<class S, class T>
istream& operator>>(istream&, Pair<S,T>&);
template<class S, class T>
ostream& operator<<(ostream&, const Pair<S,T>&);
/**************************************************************************\
Equality Testing
\**************************************************************************/
template<class S, class T>
long operator==(const Pair<S,T>& x, const Pair<S,T>& y);
template<class S, class T>
long operator!=(const Pair<S,T>& x, const Pair<S,T>& y);
|