|
ampsci
High-precision calculations for one- and two-valence atomic systems
|
Helper template that provides !=, >, <=, >= given == and <.
Derive publicly from this (with T = your class) and implement == and <; the remaining comparison operators are provided automatically.
For mixed-type comparisons, inherit multiple specialisations:
#include <Template.hpp>
Friends | |
| bool | operator!= (const T &lhs, const U &rhs) |
| bool | operator> (const T &lhs, const U &rhs) |
| bool | operator<= (const T &lhs, const U &rhs) |
| bool | operator>= (const T &lhs, const U &rhs) |