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

Function const_pointer_cast

src/fl/stl/shared_ptr.h:519–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517
518template<typename T, typename Y>
519shared_ptr<T> const_pointer_cast(const shared_ptr<Y>& other) FL_NOEXCEPT {
520 return shared_ptr<T>(other, const_cast<T*>(other.get()));
521}
522
523template<typename T, typename Y>
524shared_ptr<T> reinterpret_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