avl boost tutorial upd
avl boost tutorial upd
avl boost tutorial updavl boost tutorial upd
avl boost tutorial upd
avl boost tutorial upd

Interface:

// lookup iterator find(const key_type& k); bool contains(const key_type& k) const;

// iterators iterator begin(); iterator end();

template<typename Key, typename Value, typename Compare = std::less<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>> class avl_map { public: using key_type = Key; using mapped_type = Value; using value_type = std::pair<const Key, Value>;

// access mapped_type& operator[](const key_type& k); mapped_type& at(const key_type& k);

// modifiers std::pair<iterator, bool> insert(const value_type& v); size_t erase(const key_type& k); void clear();

Upd: Avl Boost Tutorial

Interface:

// lookup iterator find(const key_type& k); bool contains(const key_type& k) const;

// iterators iterator begin(); iterator end();

template<typename Key, typename Value, typename Compare = std::less<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>> class avl_map { public: using key_type = Key; using mapped_type = Value; using value_type = std::pair<const Key, Value>;

// access mapped_type& operator[](const key_type& k); mapped_type& at(const key_type& k);

// modifiers std::pair<iterator, bool> insert(const value_type& v); size_t erase(const key_type& k); void clear();

粤ICP备14073387号 粤公网安备 44011602000222号 Copyright©2017 广州思拓力测绘科技有限公司