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

Function static_pointer_cast

src/fl/stl/shared_ptr.h:514–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512// Casts - using aliasing constructor (matches std::shared_ptr behavior)
513template<typename T, typename Y>
514shared_ptr<T> static_pointer_cast(const shared_ptr<Y>& other) FL_NOEXCEPT {
515 return shared_ptr<T>(other, static_cast<T*>(other.get()));
516}
517
518template<typename T, typename Y>
519shared_ptr<T> const_pointer_cast(const shared_ptr<Y>& other) FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected