[coroutine.handle.compare]

# 17 Language support library [[support]](./#support)

## 17.13 Coroutines [[support.coroutine]](support.coroutine#coroutine.handle.compare)

### 17.13.4 Class template coroutine_handle [[coroutine.handle]](coroutine.handle#compare)

#### 17.13.4.8 Comparison operators [coroutine.handle.compare]

[ð](#lib:operator==,coroutine_handle)

`constexpr bool operator==(coroutine_handle<> x, coroutine_handle<> y) noexcept;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L6120)

*Returns*: x.address() == y.address()[.](#1.sentence-1)

[ð](#lib:operator%3c=%3e,coroutine_handle)

`constexpr strong_ordering operator<=>(coroutine_handle<> x, coroutine_handle<> y) noexcept;
`

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L6131)

*Returns*: compare_three_way()(x.address(), y.address())[.](#2.sentence-1)
