summaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2017-11-07 17:16:04 -0800
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2017-11-07 19:16:04 -0600
commit36abd7a3687cb20d059a8c930177277995b562e8 (patch)
tree29582fa3d8ac472f4256a51533c8e64c764d420d /src/context
parent5a98219512880392bc045f21a3c857438cd76506 (diff)
Initializing TrailHashMap::d_uniqueKeys. (#1331)
Diffstat (limited to 'src/context')
-rw-r--r--src/context/cdtrail_hashmap.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/context/cdtrail_hashmap.h b/src/context/cdtrail_hashmap.h
index e64c51c65..bbd71f8cd 100644
--- a/src/context/cdtrail_hashmap.h
+++ b/src/context/cdtrail_hashmap.h
@@ -92,7 +92,6 @@ private:
/** The trail of elements. */
KDTVec d_kdts;
-
typedef std::unordered_map<Key, size_t, HashFcn> PositionMap;
typedef typename PositionMap::iterator PM_iterator;
typedef typename PositionMap::const_iterator PM_const_iterator;
@@ -124,13 +123,15 @@ private:
}
public:
- /**
- * Constant iterator for TrailHashMap.
- * Only supports forward iteration.
- * This always points at the end or a current element in the trail.
- * This is done by iterating over the trail.
- */
- class const_iterator {
+ TrailHashMap() : d_kdts{}, d_posMap{}, d_uniqueKeys(0) {}
+
+ /**
+ * Constant iterator for TrailHashMap.
+ * Only supports forward iteration.
+ * This always points at the end or a current element in the trail.
+ * This is done by iterating over the trail.
+ */
+ class const_iterator {
private:
/** A vector iterator. */
KDTVec_const_iterator d_it;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback