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

# bounded_array_ref

```
template <typename T, typename TrappingPolicy> struct bounded_array_ref;
```

## Topics

### Instance Properties

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

[`uint32_t size_;`](/documentation/DriverKit/libkern/bounded_array_ref/size_)

### Instance Methods

[`iterator begin() const noexcept;`](/documentation/DriverKit/libkern/bounded_array_ref/begin)

[`explicit bounded_array_ref<T, TrappingPolicy>(T * *first, T * *last);`](/documentation/DriverKit/libkern/bounded_array_ref/bounded_array_ref_T,_TrappingPolicy_-28upx)

[`bounded_array_ref<T, TrappingPolicy>(const bounded_array_ref<T, TrappingPolicy> & );`](/documentation/DriverKit/libkern/bounded_array_ref/bounded_array_ref_T,_TrappingPolicy_-401rh)

[`explicit bounded_array_ref<T, TrappingPolicy>() noexcept;`](/documentation/DriverKit/libkern/bounded_array_ref/bounded_array_ref_T,_TrappingPolicy_-45ekj)

[`explicit bounded_array_ref<T, TrappingPolicy>(bounded_ptr<T, TrappingPolicy> data, size_t n);`](/documentation/DriverKit/libkern/bounded_array_ref/bounded_array_ref_T,_TrappingPolicy_-49ywc)

[`bounded_array_ref<T, TrappingPolicy>(T (&)[N]( & array)[]);`](/documentation/DriverKit/libkern/bounded_array_ref/bounded_array_ref_T,_TrappingPolicy_-4j8z8)

[`bounded_array_ref<T, TrappingPolicy>(bounded_array_ref<T, TrappingPolicy> && other) noexcept;`](/documentation/DriverKit/libkern/bounded_array_ref/bounded_array_ref_T,_TrappingPolicy_-7qp41)

[`bounded_array_ref<T, TrappingPolicy>(bounded_array<T, N, TrappingPolicy> & data);`](/documentation/DriverKit/libkern/bounded_array_ref/bounded_array_ref_T,_TrappingPolicy_-89ukq)

[`explicit bounded_array_ref<T, TrappingPolicy>(T * *data, size_t n);`](/documentation/DriverKit/libkern/bounded_array_ref/bounded_array_ref_T,_TrappingPolicy_-90ulk)

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

[`iterator end() const noexcept;`](/documentation/DriverKit/libkern/bounded_array_ref/end)

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

[`bounded_array_ref<T, TrappingPolicy> & operator=(bounded_array_ref<T, TrappingPolicy> && other);`](/documentation/DriverKit/libkern/bounded_array_ref/operator=-1ud7m)

[`bounded_array_ref<T, TrappingPolicy> & operator=(const bounded_array_ref<T, TrappingPolicy> & );`](/documentation/DriverKit/libkern/bounded_array_ref/operator=-49nep)

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

[`explicit operator _Bool() const;`](/documentation/DriverKit/libkern/bounded_array_ref/operator_bool)

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

[`bounded_array_ref<T, TrappingPolicy> slice(size_t n, size_t m) const;`](/documentation/DriverKit/libkern/bounded_array_ref/slice)

[`~bounded_array_ref<T, TrappingPolicy>();`](/documentation/DriverKit/libkern/bounded_array_ref/~bounded_array_ref_T,_TrappingPolicy_)

### Type Aliases

[`typedef bounded_ptr<T, TrappingPolicy> iterator;`](/documentation/DriverKit/libkern/bounded_array_ref/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)