<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/libkern/bounded_array",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@N@libkern@ST>3#T#Nl#T@bounded_array"
  },
  "title" : "bounded_array"
}
-->

# bounded_array

```
template <typename T, size_t N, typename TrappingPolicy> struct bounded_array;
```

## Topics

### Instance Properties

[`type-parameter-0-0 data_[];`](/documentation/DriverKit/libkern/bounded_array/data_)

### Instance Methods

[`const_iterator begin() const noexcept;`](/documentation/DriverKit/libkern/bounded_array/begin-29xl0)

[`iterator begin() noexcept;`](/documentation/DriverKit/libkern/bounded_array/begin-8i9bj)

[`constexpr type-parameter-0-0 * data() noexcept;`](/documentation/DriverKit/libkern/bounded_array/data-6lz82)

[`constexpr const type-parameter-0-0 * data() const noexcept;`](/documentation/DriverKit/libkern/bounded_array/data-71k3b)

[`const_iterator end() const noexcept;`](/documentation/DriverKit/libkern/bounded_array/end-158ro)

[`iterator end() noexcept;`](/documentation/DriverKit/libkern/bounded_array/end-7sa6w)

[`constexpr size_t length() const noexcept;`](/documentation/DriverKit/libkern/bounded_array/length)

[`type-parameter-0-0 & operator[](ptrdiff_t n);`](/documentation/DriverKit/libkern/bounded_array/operator__-1p57n)

[`const type-parameter-0-0 & operator[](ptrdiff_t n) const;`](/documentation/DriverKit/libkern/bounded_array/operator__-595gh)

[`constexpr size_t size() const noexcept;`](/documentation/DriverKit/libkern/bounded_array/size)

### Type Aliases

[`typedef bounded_ptr<const type-parameter-0-0, TrappingPolicy> const_iterator;`](/documentation/DriverKit/libkern/bounded_array/const_iterator)

[`typedef bounded_ptr<T, TrappingPolicy> iterator;`](/documentation/DriverKit/libkern/bounded_array/iterator)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)