MCPcopy Create free account
hub / github.com/davisking/dlib / static_pointer_cast

Function static_pointer_cast

dlib/smart_pointers/shared_ptr.h:450–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448
449 template<typename T, typename U>
450 shared_ptr<T> static_pointer_cast(
451 const shared_ptr<U>& r
452 )
453 {
454 return shared_ptr<T>(r, shared_ptr_static_cast());
455 }
456
457 template<typename T, typename U>
458 shared_ptr<T> const_pointer_cast(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected