5#ifndef BITCOIN_INDIRECTMAP_H
6#define BITCOIN_INDIRECTMAP_H
11 bool operator()(
const T a,
const T b)
const {
return *a < *b; }
28 typedef std::map<const K *, T, DereferencingComparator<const K *>>
base;
39 return m.insert(value);
47 return m.lower_bound(&key);
53 bool empty()
const {
return m.empty(); }
Map whose keys are pointers, but are compared by their dereferenced values.
iterator lower_bound(const K &key)
const_iterator cbegin() const
base::const_iterator const_iterator
iterator find(const K &key)
const_iterator cend() const
const_iterator lower_bound(const K &key) const
size_type max_size() const
size_type erase(const K &key)
base::value_type value_type
std::map< const K *, T, DereferencingComparator< const K * > > base
const_iterator end() const
std::pair< iterator, bool > insert(const value_type &value)
base::size_type size_type
size_type count(const K &key) const
const_iterator find(const K &key) const
const_iterator begin() const
bool operator()(const T a, const T b) const