---
title: swap
framework: driverkit
role: symbol
role_heading: Function
path: driverkit/libkern/swap
---

# swap

## Declaration

```occ
void swap(safe_allocation<T, Allocator, TrappingPolicy> & a, safe_allocation<T, Allocator, TrappingPolicy> & b) noexcept;
```
