open-cpp-utils 0.0.1
Loading...
Searching...
No Matches
open_cpp_utils::map< Key, Value, Alloc > Class Template Reference

Classes

struct  hash
 
struct  map_pair
 

Public Types

using key_type = Key
 
using value_type = Value
 
using pair_type = struct map_pair
 
using key_pointer = key_type*
 
using const_key_pointer = const key_type*
 
using key_reference = key_type&
 
using const_key_reference = const key_type&
 
using value_pointer = value_type*
 
using const_value_pointer = const value_type*
 
using value_reference = value_type&
 
using const_value_reference = const value_type&
 
using table_type = set<pair_type, hash, Alloc>
 
using iterator = typename table_type::iterator
 
using const_iterator = typename table_type::const_iterator
 

Public Member Functions

 map (std::initializer_list< pair_type > data)
 
 map (const map &)=default
 
 map (map &&)=default
 
void reserve (size_t size)
 
void insert (const_key_reference key, const_value_reference value)
 
void erase (const_key_reference key)
 
value_reference & operator[] (const_key_reference key)
 
const_value_reference & get (const_key_reference key, const_value_reference &def=value_type()) const
 
iterator find (const_key_reference key)
 
const_iterator find (const_key_reference key) const
 
bool contains (const_key_reference key)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
size_t size () const
 

The documentation for this class was generated from the following file: