Upd — Avl Boost Tutorial

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

// lookup iterator find(const key_type& k); bool contains(const key_type& k) const; avl boost tutorial upd

// iterators iterator begin(); iterator end(); // access mapped_type& operator[](const key_type& k)

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>; mapped_type& at(const key_type& k)

Interface:

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

avl_map(); ~avl_map();

Vous avez un projet en tête?

Contactez-nous
arrow black
800, Square Victoria Suite 2624
Montréal (QC)
H3C 0B4 Canada
Av. de la Catedral, 6 
Ciutat Vella, 08002 Barcelona
Espagne
linkcrossmenu