Template Class SortedArrayDictionary
Defined in File SortedArrayDictionary.h
Class Documentation
-
template<std::totally_ordered K, class V>
class SortedArrayDictionary a DICTIONARY realized with a vector sorted by key
Public Types
-
using size_type = std::size_t
-
using difference_type = std::ptrdiff_t
-
using iterator = const_iterator
Public Functions
-
void insert(const K &k, const V &v)
associates the value v to the key k, O( n )
- Post:
k has the value v
-
bool empty(void) const
-
std::size_t size(void) const
the number of keys
-
inline const_iterator begin(void) const
-
inline const_iterator end(void) const
-
inline const_iterator cbegin(void) const
-
inline const_iterator cend(void) const
-
using size_type = std::size_t