MCPcopy Create free account
hub / github.com/FastLED/FastLED / ptr

Function ptr

src/fl/stl/variant.h:126–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 template <typename T> const T *ptr() const FL_NOEXCEPT {
127 if (!is<T>()) return nullptr;
128 // Use bit_cast_ptr for safe type-punning on properly aligned storage
129 // The storage is guaranteed to be properly aligned by alignas(max_align<Types...>::value)
130 return fl::bit_cast_ptr<const T>(&_storage[0]);
131 }
132
133 /// @brief Get a reference to the stored value of type T
134 /// @tparam T The type to retrieve

Callers 4

operator==Method · 0.85
OptionalClass · 0.85
operator->Method · 0.85
value_orMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected