---
title: operator==
framework: driverkit
role: symbol
role_heading: Function Template
path: driverkit/libkern/operator==-96xsq
---

# operator==

## Declaration

```occ
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);
```
