FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator->() [2/2]

template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
pointer fl::HashMap< Key, T, Hash, KeyEqual, INLINED_COUNT >::iterator::operator-> ( ) const
inline

Definition at line 106 of file hash_map.h.

106 {
107 // Use reinterpret_cast since pair<const Key, T> and pair<Key, T> are different types
108 // but have the same memory layout, then destroy/reconstruct to avoid assignment issues
111 mutable_cached.~mutable_value_type();
112 new (&mutable_cached) mutable_value_type(operator*());
113 return &_cached_value;
114 }
To bit_cast(const From &from) noexcept
Definition bit_cast.h:39
value_type _cached_value
Definition hash_map.h:144

References _cached_value, and fl::bit_cast().

+ Here is the call graph for this function: