---
title: safe_allocation
framework: driverkit
role: symbol
role_heading: Structure
path: driverkit/libkern/safe_allocation
---

# safe_allocation

## Declaration

```occ
template <typename T, typename Allocator, typename TrappingPolicy> struct safe_allocation;
```

## Topics

### Instance Properties

- [data_](driverkit/libkern/safe_allocation/data_.md)
- [size_](driverkit/libkern/safe_allocation/size_.md)

### Instance Methods

- [begin](driverkit/libkern/safe_allocation/begin-3dcll.md)
- [begin](driverkit/libkern/safe_allocation/begin-tww.md)
- [data](driverkit/libkern/safe_allocation/data-22ie4.md)
- [data](driverkit/libkern/safe_allocation/data-ndtq.md)
- [end](driverkit/libkern/safe_allocation/end-36jim.md)
- [end](driverkit/libkern/safe_allocation/end-3p0c5.md)
- [operator=](driverkit/libkern/safe_allocation/operator=-1w9z8.md)
- [operator=](driverkit/libkern/safe_allocation/operator=-5z2we.md)
- [operator=](driverkit/libkern/safe_allocation/operator=-o5nf.md)
- [operator[]](driverkit/libkern/safe_allocation/operator__-3hxos.md)
- [operator[]](driverkit/libkern/safe_allocation/operator__-3r1sy.md)
- [operator bool](driverkit/libkern/safe_allocation/operator_bool.md)
- [safe_allocation<T, Allocator, TrappingPolicy>](driverkit/libkern/safe_allocation/safe_allocation_t,_allocator,_trappingpolicy_-2tktj.md)
- [safe_allocation<T, Allocator, TrappingPolicy>](driverkit/libkern/safe_allocation/safe_allocation_t,_allocator,_trappingpolicy_-3gmjc.md)
- [safe_allocation<T, Allocator, TrappingPolicy>](driverkit/libkern/safe_allocation/safe_allocation_t,_allocator,_trappingpolicy_-4sled.md)
- [safe_allocation<T, Allocator, TrappingPolicy>](driverkit/libkern/safe_allocation/safe_allocation_t,_allocator,_trappingpolicy_-6fh36.md)
- [safe_allocation<T, Allocator, TrappingPolicy>](driverkit/libkern/safe_allocation/safe_allocation_t,_allocator,_trappingpolicy_-6t8d2.md)
- [safe_allocation<T, Allocator, TrappingPolicy>](driverkit/libkern/safe_allocation/safe_allocation_t,_allocator,_trappingpolicy_-822ca.md)
- [safe_allocation<T, Allocator, TrappingPolicy>](driverkit/libkern/safe_allocation/safe_allocation_t,_allocator,_trappingpolicy_-8q8eq.md)
- [size](driverkit/libkern/safe_allocation/size.md)
- [~safe_allocation<T, Allocator, TrappingPolicy>](driverkit/libkern/safe_allocation/~safe_allocation_t,_allocator,_trappingpolicy_.md)

### Type Aliases

- [const_iterator](driverkit/libkern/safe_allocation/const_iterator.md)
- [iterator](driverkit/libkern/safe_allocation/iterator.md)

### Type Methods

- [destroy_dealloc_](driverkit/libkern/safe_allocation/destroy_dealloc_.md)
