diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-28 12:30:11 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-28 12:30:11 +0000 |
| commit | c342bde9627b434effbc0cd10b817670d1da0923 (patch) | |
| tree | 60d14bf448066b8dcd639adfa0db716d5a8258c8 /src/DHTPeerAnnounceEntry.h | |
| parent | 135f0a2a8c4ee04a5e96d84ba558245fabfc1f5c (diff) | |
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use vector instead of deque for containers which is used for
mostly read-only purpose.
Diffstat (limited to 'src/DHTPeerAnnounceEntry.h')
| -rw-r--r-- | src/DHTPeerAnnounceEntry.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DHTPeerAnnounceEntry.h b/src/DHTPeerAnnounceEntry.h index fee6197a..f957ba59 100644 --- a/src/DHTPeerAnnounceEntry.h +++ b/src/DHTPeerAnnounceEntry.h @@ -37,7 +37,7 @@ #include "common.h" -#include <deque> +#include <vector> #include "SharedHandle.h" #include "DHTConstants.h" @@ -52,7 +52,7 @@ class DHTPeerAnnounceEntry { private: unsigned char _infoHash[DHT_ID_LENGTH]; - std::deque<PeerAddrEntry> _peerAddrEntries; + std::vector<PeerAddrEntry> _peerAddrEntries; Time _lastUpdated; public: @@ -66,7 +66,7 @@ public: size_t countPeerAddrEntry() const; - const std::deque<PeerAddrEntry>& getPeerAddrEntries() const + const std::vector<PeerAddrEntry>& getPeerAddrEntries() const { return _peerAddrEntries; } @@ -87,7 +87,7 @@ public: return _infoHash; } - void getPeers(std::deque<SharedHandle<Peer> >& peers) const; + void getPeers(std::vector<SharedHandle<Peer> >& peers) const; }; |
