---
title: OSSharedPtr
framework: driverkit
role: symbol
role_heading: Structure
path: driverkit/ossharedptr
---

# OSSharedPtr

## Declaration

```occ
template <typename T> struct OSSharedPtr;
```

## Topics

### Structures

- [attacher](driverkit/ossharedptr/attacher.md)

### Instance Properties

- [ptr_](driverkit/ossharedptr/ptr_.md)

### Instance Methods

- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-32r9g.md)
- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-35q6u.md)
- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-4akev.md)
- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-4engp.md)
- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-7afqf.md)
- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-7qy8m.md)
- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-86ndt.md)
- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-921y4.md)
- [OSSharedPtr<T>](driverkit/ossharedptr/ossharedptr_t_-u4d9.md)
- [attach](driverkit/ossharedptr/attach.md)
- [detach](driverkit/ossharedptr/detach.md)
- [detachAsOSPtr](driverkit/ossharedptr/detachasosptr.md)
- [get](driverkit/ossharedptr/get-3c2qe.md)
- [get](driverkit/ossharedptr/get-5ozdm.md)
- [operator*](driverkit/ossharedptr/operator*.md)
- [operator->](driverkit/ossharedptr/operator-_.md)
- [operator=](driverkit/ossharedptr/operator=-29wpr.md)
- [operator=](driverkit/ossharedptr/operator=-2jidh.md)
- [operator=](driverkit/ossharedptr/operator=-5z7no.md)
- [operator=](driverkit/ossharedptr/operator=-lttt.md)
- [operator=](driverkit/ossharedptr/operator=-s4b2.md)
- [operator bool](driverkit/ossharedptr/operator_bool.md)
- [reset](driverkit/ossharedptr/reset-4bbt3.md)
- [reset](driverkit/ossharedptr/reset-56dsk.md)
- [reset](driverkit/ossharedptr/reset-6f62y.md)
- [~OSSharedPtr<T>](driverkit/ossharedptr/~ossharedptr_t_.md)

### Type Aliases

- [element_type](driverkit/ossharedptr/element_type.md)
- [no_retain_t](driverkit/ossharedptr/no_retain_t.md)
- [pointer](driverkit/ossharedptr/pointer.md)
- [retain_t](driverkit/ossharedptr/retain_t.md)

## See Also

### Structures

- [IODMACommandSpecification](driverkit/iodmacommandspecification.md)
- [IOHistogramReportValues](driverkit/iohistogramreportvalues.md)
- [IOHistogramSegmentConfig](driverkit/iohistogramsegmentconfig.md)
- [IONormDistReportValues](driverkit/ionormdistreportvalues.md)
- [IORPCMessageErrorReturnContent](driverkit/iorpcmessageerrorreturncontent.md)
- [IOReportChannel](driverkit/ioreportchannel.md)
- [IOReportChannelList](driverkit/ioreportchannellist.md)
- [IOReportChannelType](driverkit/ioreportchanneltype.md)
- [IOReportElement](driverkit/ioreportelement.md)
- [IOReportElementValues](driverkit/ioreportelementvalues.md)
- [IOReportInterest](driverkit/ioreportinterest.md)
- [IOReportInterestList](driverkit/ioreportinterestlist.md)
- [IOSimpleArrayReportValues](driverkit/iosimplearrayreportvalues.md)
- [IOSimpleReportValues](driverkit/iosimplereportvalues.md)
- [IOStateReportValues](driverkit/iostatereportvalues.md)
