HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
tt::range_map< Key, Value > Class Template Reference

Public Member Functions

void insert (Key const &first, Key const &last, Value &&value) noexcept
 Insert half open range of keys.
 
void optimize () noexcept
 Optimize range_map for improved lookup performance and reduced memory footprint.
 
values_set insert (p->values)
 
 for (auto i=p+1;i !=items.end();p=i++)
 
items shrink_to_fit ()
 

Data Fields

 values_set
 
auto p = items.begin()
 

Member Function Documentation

◆ insert()

template<typename Key , typename Value >
void tt::range_map< Key, Value >::insert ( Key const & first,
Key const & last,
Value && value )
inlinenoexcept

Insert half open range of keys.

Inserts may be slow, since it may require moves of large number of objects and allocations.

◆ optimize()

template<typename Key , typename Value >
void tt::range_map< Key, Value >::optimize ( )
inlinenoexcept

Optimize range_map for improved lookup performance and reduced memory footprint.


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