Skip to main content

One doc tagged with "shared-ptr"

View all tags

std::shared_ptr

Smart pointer with shared ownership via reference counting. Multiple shared_ptrs can own the same object, deleted when last owner destroyed.