diff options
Diffstat (limited to 'src/include/utility')
-rw-r--r-- | src/include/utility | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/include/utility b/src/include/utility index 3e6fbc413..5a36e117c 100644 --- a/src/include/utility +++ b/src/include/utility @@ -53,7 +53,7 @@ namespace std * @return a newly-constructed pair<> object */ template <typename T1, typename T2> __attribute__ ((always_inline)) - pair<T1,T2> make_pair (T1 x, T2 y) + inline pair<T1,T2> make_pair (T1 x, T2 y) { return ( pair<T1,T2>(x,y) ); } @@ -65,7 +65,7 @@ namespace std * @return true if x is strictly eq y */ template <typename T1, typename T2> __attribute__ ((always_inline)) - bool operator==(const pair<T1, T2>& x, const pair<T1, T2>& y) + inline bool operator==(const pair<T1, T2>& x, const pair<T1, T2>& y) { return x.first == y.first && x.second == y.second; } @@ -77,7 +77,7 @@ namespace std * @return true if x < y */ template<typename T1, typename T2> __attribute__ ((always_inline)) - bool operator<(const pair<T1, T2>& x, const pair<T1, T2>& y) + inline bool operator<(const pair<T1, T2>& x, const pair<T1, T2>& y) { return (x.first < y.first) || (!(y.first < x.first) && x.second < y.second); @@ -90,7 +90,7 @@ namespace std * @return true if x != y */ template<typename T1, typename T2> __attribute__ ((always_inline)) - bool operator!=(const pair<T1, T2>& x, const pair<T1, T2>& y) + inline bool operator!=(const pair<T1, T2>& x, const pair<T1, T2>& y) { return !(x == y); } @@ -103,7 +103,7 @@ namespace std * @return true if x > y */ template<typename T1, typename T2> __attribute__ ((always_inline)) - bool operator>(const pair<T1, T2>& x, const pair<T1, T2>& y) + inline bool operator>(const pair<T1, T2>& x, const pair<T1, T2>& y) { return y < x; } @@ -115,7 +115,7 @@ namespace std * @return true if x <= y */ template<typename T1, typename T2> __attribute__ ((always_inline)) - bool operator<=(const pair<T1, T2>& x, const pair<T1, T2>& y) + inline bool operator<=(const pair<T1, T2>& x, const pair<T1, T2>& y) { return !(y < x); } @@ -127,7 +127,7 @@ namespace std * @return true if x >= y */ template<typename T1, typename T2> __attribute__ ((always_inline)) - bool operator>=(const pair<T1, T2>& x, const pair<T1, T2>& y) + inline bool operator>=(const pair<T1, T2>& x, const pair<T1, T2>& y) { return !(x < y); } |