replace unordered_map by map

This commit is contained in:
Zhiheng Dong
2022-07-27 13:52:24 -07:00
parent 2942a14ac0
commit ff53821535
2 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@
#include <stdint.h>
#include <list>
#include <unordered_map>
#include <map>
#include "ns3/simulator.h"
#include "ns3/callback.h"
#include "ns3/packet.h"
@@ -303,11 +303,11 @@ private:
/**
* \brief ARP Cache container
*/
typedef std::unordered_map<Ipv4Address, ArpCache::Entry *, Ipv4AddressHash> Cache;
typedef std::map<Ipv4Address, ArpCache::Entry *> Cache;
/**
* \brief ARP Cache container iterator
*/
typedef std::unordered_map<Ipv4Address, ArpCache::Entry *, Ipv4AddressHash>::iterator CacheI;
typedef std::map<Ipv4Address, ArpCache::Entry *>::iterator CacheI;
virtual void DoDispose (void);

View File

@@ -23,7 +23,7 @@
#include <stdint.h>
#include <list>
#include <unordered_map>
#include <map>
#include "ns3/packet.h"
#include "ns3/nstime.h"
@@ -431,11 +431,11 @@ protected:
/**
* \brief Neighbor Discovery Cache container
*/
typedef std::unordered_map<Ipv6Address, NdiscCache::Entry *, Ipv6AddressHash> Cache;
typedef std::map<Ipv6Address, NdiscCache::Entry *> Cache;
/**
* \brief Neighbor Discovery Cache container iterator
*/
typedef std::unordered_map<Ipv6Address, NdiscCache::Entry *, Ipv6AddressHash>::iterator CacheI;
typedef std::map<Ipv6Address, NdiscCache::Entry *>::iterator CacheI;
/**
* \brief A list of Entry.