<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/libkern/operator==-96xsq",
  "metadataVersion" : "0.1.0",
  "role" : "Function Template",
  "symbol" : {
    "kind" : "Function Template",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@N@libkern@FT@>5#T#T#T#T#Toperator==#&1>@N@libkern@ST>2#T#T@bounded_ptr2t0.0t0.1#&1>@N@libkern@ST>2#T#T@bounded_ptr2t0.2t0.3#b#"
  },
  "title" : "operator=="
}
-->

# operator==

```
template <typename T, typename P1, typename U, typename P2, typename = detail::detail::WhenComparable<T * *, U * *>> bool operator==(const bounded_ptr<T, P1> & a, const bounded_ptr<U, P2> & b);
```

---

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)