00001 #ifndef NMWR_GB_OPERATORS_H
00002 #define NMWR_GB_OPERATORS_H
00003
00004
00005
00006
00007
00008
00013
00014
00015 template<class T>
00016 struct assign {
00017 void operator()(T& ls, const T& rs) { ls = rs;}
00018 };
00019
00021
00022 template<class T>
00023 struct add_assign {
00024 void operator()(T& ls, const T& rs) { ls += rs;}
00025 };
00026
00028
00029 template<class T>
00030 struct mult_assign {
00031 void operator()(T& ls, const T& rs) { ls *= rs;}
00032 };
00033
00034
00035 #endif
00036