aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/defs.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-05-26 16:15:36 -0400
committerErik Schnetter <schnetter@gmail.com>2013-05-26 16:18:25 -0400
commitfa57059414919bea3cd6d7d62b69dc733f8b8f6d (patch)
treea7db559a64f53e5f36008a3d57dcbebac3915a74 /Carpet/CarpetLib/src/defs.hh
parent62d962f1a5140c37b494ab08174d1d5f42a52e8a (diff)
CarpetLib: Use C++ standard methods to compare containers
Remove CarpetLib's "equals" method. Implement equal_to, less, greater, greater_equal, less_equal, not_equal for vect and bbox classes.
Diffstat (limited to 'Carpet/CarpetLib/src/defs.hh')
-rw-r--r--Carpet/CarpetLib/src/defs.hh13
1 files changed, 0 insertions, 13 deletions
diff --git a/Carpet/CarpetLib/src/defs.hh b/Carpet/CarpetLib/src/defs.hh
index e2c6325af..7968300a2 100644
--- a/Carpet/CarpetLib/src/defs.hh
+++ b/Carpet/CarpetLib/src/defs.hh
@@ -278,19 +278,6 @@ namespace std {
-// Container equality
-template <typename T>
-bool equals (vector<T> const& v, vector<T> const& w)
-{
- if (v.size() != w.size()) return false;
- for (size_t i=0; i<v.size(); ++i) {
- if (v.AT(i) != w.AT(i)) return false;
- }
- return true;
-}
-
-
-
// Container memory usage
inline size_t memoryof (char const & e) { return sizeof e; }
inline size_t memoryof (short const & e) { return sizeof e; }