|
ampsci
High-precision calculations for one- and two-valence atomic systems
|
Helper template that provides +, -, *, / given +=, -=, *=, /=.
Derive publicly from this (with T = your class) and implement the compound-assignment operators; the binary operators are provided automatically.
#include <Template.hpp>
Inheritance diagram for qip::Arithmetic< T >:Friends | |
| T | operator+ (T lhs, const T &rhs) |
| T | operator- (T lhs, const T &rhs) |
| T | operator* (T lhs, const T &rhs) |
| T | operator/ (T lhs, const T &rhs) |