00001 #ifndef QMATH_H 00002 #define QMATH_H 00003 00004 namespace za_co_codespot 00005 { 00006 namespace math 00007 { 00008 00012 template <typename T> 00013 T inline sqr(T x); 00014 00015 00016 // Implementation 00017 00018 template <typename T> 00019 T sqr(T x) 00020 { 00021 return x * x; 00022 } 00023 00024 } //end namespace math 00025 } //end namespace za_co_codespot 00026 00027 #endif //QMATH_H