41 for (
auto it =
begin(); it !=
end(); ++it) {
42 if (it->first == key) {
50 for (
auto it =
begin(); it !=
end(); ++it) {
51 if (it->first == key) {
68 template <
typename Less>
89 template <
typename Less>
134 if (
data.size() < N) {
139 return {
true,
data.end() - 1};
144 return {
false,
end()};
156 if (
data.size() < N) {
161 return {
true,
data.end() - 1};
166 return {
false,
end()};
175 }
else if (insert_if_missing) {
188 }
else if (insert_if_missing) {
200 return data.back().second;
208 static Value default_value;
209 return default_value;
218 *next_key = it->first;
220 }
else if (allow_rollover && !
empty()) {
221 *next_key =
begin()->first;
234 *prev_key = it->first;
236 }
else if (allow_rollover && !
empty()) {
237 *prev_key =
data[
data.size() - 1].first;
282template <
typename Key,
typename T,
typename Compare = fl::less<Key>>
286template <
typename Key,
typename T,
typename Compare = fl::less<Key>>
const PairKV * const_iterator
iterator find(const Key &key) FL_NO_EXCEPT
const_iterator highest(Less less_than=Less()) const FL_NO_EXCEPT
bool next(const Key &key, Key *next_key, bool allow_rollover=false) const FL_NO_EXCEPT
FixedVector< PairKV, N > VectorType
constexpr fl::size size() const FL_NO_EXCEPT
const_iterator end() const FL_NO_EXCEPT
fl::pair< Key, Value > PairKV
bool has(const Key &it) const FL_NO_EXCEPT
bool update(const Key &key, const Value &value, bool insert_if_missing=true) FL_NO_EXCEPT
const_iterator begin() const FL_NO_EXCEPT
Value & operator[](const Key &key) FL_NO_EXCEPT
constexpr unsorted_map_fixed() FL_NO_EXCEPT=default
VectorType::iterator iterator
const_iterator lowest(Less less_than=Less()) const FL_NO_EXCEPT
pair< bool, iterator > insert(const Key &key, const Value &value, insert_result *result=nullptr) FL_NO_EXCEPT
bool get(const Key &key, Value *value) const FL_NO_EXCEPT
Value get(const Key &key, bool *has=nullptr) const FL_NO_EXCEPT
fl::size erase(const Key &key) FL_NO_EXCEPT
constexpr bool empty() const FL_NO_EXCEPT
void clear() FL_NO_EXCEPT
iterator highest(Less less_than=Less()) FL_NO_EXCEPT
VectorType::const_iterator const_iterator
bool contains(const Key &key) const FL_NO_EXCEPT
bool update(const Key &key, Value &&value, bool insert_if_missing=true) FL_NO_EXCEPT
const Value & operator[](const Key &key) const FL_NO_EXCEPT
const_iterator find(const Key &key) const FL_NO_EXCEPT
iterator begin() FL_NO_EXCEPT
pair< bool, iterator > insert(Key &&key, Value &&value, insert_result *result=nullptr) FL_NO_EXCEPT
iterator lowest(Less less_than=Less()) FL_NO_EXCEPT
constexpr fl::size capacity() const FL_NO_EXCEPT
iterator end() FL_NO_EXCEPT
bool prev(const Key &key, Key *prev_key, bool allow_rollover=false) const FL_NO_EXCEPT
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
u8 u8 fract8 blur_amount FL_NO_EXCEPT
constexpr int type_rank< T >::value
MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > > map
expected< T, E > result
Alias for expected (Rust-style naming)
map< Key, T, Compare > fl_map
Base definition for an LED controller.