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

◆ test()

template<uint32_t N = 256>
bool fl::BitsetInlined< N >::test ( uint32_t pos) const
inlinenoexcept

Tests whether the bit at position pos is set.

Definition at line 383 of file bitset.h.

383 {
384 if (_storage.template is<fixed_bitset>()) {
385 return pos < N ? _storage.template ptr<fixed_bitset>()->test(pos)
386 : false;
387 } else {
388 return _storage.template ptr<bitset_dynamic>()->test(pos);
389 }
390 }
bool test(uint32_t pos) const noexcept
Tests whether the bit at position pos is set.
Definition bitset.h:383
A Bitset implementation with inline storage that can grow if needed.
Definition bitset.h:225

Referenced by fl::HashMap< Key, T, Hash, KeyEqual >::find_unoccupied_index_using_bitset(), operator&, operator[](), operator^, fl::HashMap< Key, T, Hash, KeyEqual >::rehash(), and fl::HashMap< Key, T, Hash, KeyEqual >::rehash_inline_no_resize().

+ Here is the caller graph for this function: