diff options
author | Roland Haas <rhaas@tapir.caltech.edu> | 2013-10-08 17:31:22 -0700 |
---|---|---|
committer | Roland Haas <rhaas@tapir.caltech.edu> | 2013-10-15 09:14:34 -0700 |
commit | 8237792551e9f5f9ca95e98d78a709b5722ed25f (patch) | |
tree | 6854b81359a9e350e4dd89047a9e301355d7a891 /Carpet/CarpetLib/src/defs.hh | |
parent | b13c69008fd5d9b0d04f417cec3c21f507e3a6f4 (diff) |
CarpetLib: use map instead of set for dh::gfs
some routines assume that elements in gfs are sorted by variable index
when traversing the container (eg recompose_allocate does)
Diffstat (limited to 'Carpet/CarpetLib/src/defs.hh')
-rw-r--r-- | Carpet/CarpetLib/src/defs.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/defs.hh b/Carpet/CarpetLib/src/defs.hh index 747761cd7..8f8c13345 100644 --- a/Carpet/CarpetLib/src/defs.hh +++ b/Carpet/CarpetLib/src/defs.hh @@ -326,6 +326,8 @@ template<class T> inline size_t memoryof (typename list<T>::const_iterator const template<class T> size_t memoryof (list<T> const & c) CCTK_ATTRIBUTE_PURE; template<class T> size_t memoryof (set<T> const & c) CCTK_ATTRIBUTE_PURE; +template<class S, class T> + size_t memoryof (map<S,T> const & c) CCTK_ATTRIBUTE_PURE; template<class T> size_t memoryof (stack<T> const & c) CCTK_ATTRIBUTE_PURE; template<class T> size_t memoryof (vector<T> const & c) CCTK_ATTRIBUTE_PURE; |