diff options
author | gatecat <gatecat@ds0.me> | 2021-06-01 16:51:18 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-06-02 14:27:56 +0100 |
commit | 579b98c5963c2b86d191d481a2147a663a8196dd (patch) | |
tree | a37baaeac305fbb9d3f7db98ccda8a1708ac234c /common/hashlib.h | |
parent | ff72454f8391ab4785fa8314f3efbbea96c30422 (diff) | |
download | nextpnr-579b98c5963c2b86d191d481a2147a663a8196dd.tar.gz nextpnr-579b98c5963c2b86d191d481a2147a663a8196dd.tar.bz2 nextpnr-579b98c5963c2b86d191d481a2147a663a8196dd.zip |
Use hashlib for core netlist structures
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/hashlib.h')
-rw-r--r-- | common/hashlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/hashlib.h b/common/hashlib.h index 48db024f..30fefc65 100644 --- a/common/hashlib.h +++ b/common/hashlib.h @@ -339,6 +339,10 @@ template <typename K, typename T, typename OPS> class dict } public: + using key_type = K; + using mapped_type = T; + using value_type = std::pair<K, T>; + class const_iterator : public std::iterator<std::forward_iterator_tag, std::pair<K, T>> { friend class dict; |