diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-03-23 01:34:37 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-03-23 01:34:37 +0900 |
| commit | eed804baaa02b4f81a27ba2844868b19992a90a1 (patch) | |
| tree | f6c5741443a979593fe080422ac78ef1b0f699d2 /src/Peer.cc | |
| parent | 4acc0f88317287b86c6b89ba5e5262d3ebd30cc9 (diff) | |
Use std::set instead of std::deque if the elements are sorted and
insertions and deletions are frequent.
Diffstat (limited to 'src/Peer.cc')
| -rw-r--r-- | src/Peer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Peer.cc b/src/Peer.cc index 2621b929..020ff25f 100644 --- a/src/Peer.cc +++ b/src/Peer.cc @@ -287,7 +287,7 @@ size_t Peer::countPeerAllowedIndexSet() const return res_->peerAllowedIndexSet().size(); } -const std::vector<size_t>& Peer::getPeerAllowedIndexSet() const +const std::set<size_t>& Peer::getPeerAllowedIndexSet() const { assert(res_); return res_->peerAllowedIndexSet(); |
