20template <
typename Key,
typename Val>
35 template <
typename InputIterator>
36 dict(InputIterator first, InputIterator last);
42 std::size_t
size(
void)
const;
49 std::vector<Key>
keys(
void)
const;
56 std::vector<Val>
vals(
void)
const;
63 bool has_key(
const Key& key)
const;
71 const Val&
get(
const Key& key,
const Val& other)
const;
78 const Val&
get(
const Key& key)
const;
85 void set(
const Key& key,
const Val& val);
124 Val
pop(
const Key& key);
145 operator std::map<Key, Val>()
const;
148 typedef std::pair<Key, Val> pair_t;
149 std::list<pair_t> _map;
std::vector< Key > keys(void) const
Definition: dict.ipp:51
std::vector< Val > vals(void) const
Definition: dict.ipp:60
bool operator==(const dict< Key, Val > &other) const
Definition: dict.ipp:115
void update(const dict< Key, Val > &new_dict, bool fail_on_conflict=true)
Definition: dict.ipp:146
const Val & operator[](const Key &key) const
Definition: dict.ipp:98
std::size_t size(void) const
Definition: dict.ipp:46
bool operator!=(const dict< Key, Val > &other) const
Definition: dict.ipp:128
bool has_key(const Key &key) const
Definition: dict.ipp:69
dict(void)
Definition: dict.ipp:34
const Val & get(const Key &key, const Val &other) const
Definition: dict.ipp:77
Val pop(const Key &key)
Definition: dict.ipp:133
void set(const Key &key, const Val &val)
Definition: dict.ipp:93
Definition: build_info.hpp:12