25#ifndef _chemistry_qc_lmp2_util_h
26#define _chemistry_qc_lmp2_util_h
36template <
class T1,
class T2,
class T3>
47 triplet(
const T1&a_,
const T2&b_,
const T3&c_):
a(a_),
b(b_),
c(c_) {}
48 bool operator == (
const sma2::triplet<T1, T2, T3> &t)
const {
49 return a==t.a &&
b==t.b &&
c=t.c;
51 bool operator < (
const sma2::triplet<T1, T2, T3> &t)
const {
52 if (
a<t.a)
return true;
53 else if (
a>t.a)
return false;
54 if (
b<t.b)
return true;
55 else if (
b>t.b)
return false;
56 if (
c<t.c)
return true;
62template <
class T1,
class T2,
class T3>
63sma2::triplet<T1, T2, T3> make_triplet(
const T1&a,
const T2&b,
const T3&c)
65 return triplet<T1, T2, T3>(a,b,c);
Contains all MPQC code up to version 3.
Definition mpqcin.h:14
Stores a triplet of data.
Definition util.h:37
T1 a
The first member of the triplet.
Definition util.h:39
T2 b
The second member of the triplet.
Definition util.h:41
T3 c
The third member of the triplet.
Definition util.h:43