11#include <initializer_list>
23template <
typename Key,
typename Val>
38 template <
typename InputIterator>
39 dict(InputIterator first, InputIterator last);
41 dict(std::initializer_list<std::pair<Key, Val>> l);
47 std::size_t
size(
void)
const;
54 std::vector<Key>
keys(
void)
const;
61 std::vector<Val>
vals(
void)
const;
68 bool has_key(
const Key& key)
const;
76 const Val&
get(
const Key& key,
const Val& other)
const;
83 const Val&
get(
const Key& key)
const;
90 void set(
const Key& key,
const Val& val);
129 Val
pop(
const Key& key);
150 operator std::map<Key, Val>()
const;
153 typedef std::pair<Key, Val> pair_t;
154 std::list<pair_t> _map;
std::vector< Key > keys(void) const
Definition dict.ipp:59
std::vector< Val > vals(void) const
Definition dict.ipp:69
bool operator==(const dict< Key, Val > &other) const
Definition dict.ipp:136
void update(const dict< Key, Val > &new_dict, bool fail_on_conflict=true)
Definition dict.ipp:170
const Val & operator[](const Key &key) const
Definition dict.ipp:115
std::size_t size(void) const
Definition dict.ipp:53
bool operator!=(const dict< Key, Val > &other) const
Definition dict.ipp:150
bool has_key(const Key &key) const
Definition dict.ipp:79
dict(void)
Definition dict.ipp:34
const Val & get(const Key &key, const Val &other) const
Definition dict.ipp:89
Val pop(const Key &key)
Definition dict.ipp:156
void set(const Key &key, const Val &val)
Definition dict.ipp:109
#define UHD_API_HEADER
Definition config.h:88
Definition build_info.hpp:12