5 #ifndef FABCOIN_INDIRECTMAP_H 6 #define FABCOIN_INDIRECTMAP_H 21 template <
class K,
class T>
24 typedef std::map<const K*, T, DereferencingComparator<const K*> >
base;
33 std::pair<iterator, bool>
insert(
const value_type& value) {
return m.insert(value); }
36 iterator
find(
const K& key) {
return m.find(&key); }
37 const_iterator
find(
const K& key)
const {
return m.find(&key); }
38 iterator
lower_bound(
const K& key) {
return m.lower_bound(&key); }
39 const_iterator
lower_bound(
const K& key)
const {
return m.lower_bound(&key); }
40 size_type
erase(
const K& key) {
return m.erase(&key); }
41 size_type
count(
const K& key)
const {
return m.count(&key); }
44 bool empty()
const {
return m.empty(); }
45 size_type
size()
const {
return m.size(); }
46 size_type
max_size()
const {
return m.max_size(); }
48 iterator
begin() {
return m.begin(); }
49 iterator
end() {
return m.end(); }
50 const_iterator
begin()
const {
return m.begin(); }
51 const_iterator
end()
const {
return m.end(); }
52 const_iterator
cbegin()
const {
return m.cbegin(); }
53 const_iterator
cend()
const {
return m.cend(); }
56 #endif // FABCOIN_INDIRECTMAP_H const_iterator lower_bound(const K &key) const
const_iterator end() const
base::value_type value_type
bool operator()(const T a, const T b) const
base::const_iterator const_iterator
const_iterator cbegin() const
std::pair< iterator, bool > insert(const value_type &value)
iterator lower_bound(const K &key)
const_iterator find(const K &key) const
const_iterator cend() const
std::map< const K *, T, DereferencingComparator< const K * > > base
base::size_type size_type
size_type max_size() const
iterator find(const K &key)
const_iterator begin() const
size_type erase(const K &key)
size_type count(const K &key) const