From 7c48447ffab2266462ca084e1e16afd57104fcc1 Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr" Date: Wed, 15 Sep 2021 22:01:48 +0200 Subject: [PATCH] core: Add hashing functor for creating hash of a Ptr --- CHANGES.html | 1 + RELEASE_NOTES | 1 + src/core/model/ptr.h | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/CHANGES.html b/CHANGES.html index 6e6535832..782e1c071 100644 --- a/CHANGES.html +++ b/CHANGES.html @@ -60,6 +60,7 @@ us a note on ns-developers mailing list.

  • In class Ipv4InterfaceAddress, a new function IsInSameSubnet () is added to check if both the IPv4 addresses are in the same subnet. Also, it is consistent with Ipv6InterfaceAddress::IsInSameSubnet ().
  • In class ConfigStore, a new Attribue SaveDeprecated allows to not save DEPRECATED Attributes. The default value is false (save DEPRECATED Attributes).
  • In class TracedCallback, a new function IsEmpty allows to know if the TracedCallback will call any callback.
  • +
  • A new specialization of std::hash for Ptr allows to use seamlessly Ptrs as keys in unordered_map and unordered_set.
  • Changes to existing API: