MCPcopy Create free account
hub / github.com/audacity/audacity / SharedPointer

Function SharedPointer

libraries/lib-track/Track.h:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153 template<typename Subclass = const Track>
154 inline auto SharedPointer() const ->
155 std::enable_if_t<
156 std::is_const_v<Subclass>, std::shared_ptr<Subclass>
157 >
158 {
159 // shared_from_this is injected into class scope by base class
160 // std::enable_shared_from_this<Track>
161 return std::static_pointer_cast<Subclass>( shared_from_this() );
162 }
163
164 // Static overloads of SharedPointer for when the pointer may be null
165 template<typename Subclass = Track>

Callers 7

GetFocusMethod · 0.85
SetFocusMethod · 0.85
SetMethod · 0.85
Track.hFile · 0.85
NotifyMethod · 0.85
DragMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected