Spec-Zone.ru › C++

std::hash<std::coroutine_handle>

Определено в заголовке <coroutine>
template< class Promise >
struct hash<std::coroutine_handle<Promise>>;
(с C++20)

Шаблонная специализация std::hash для std::coroutine_handle позволяет пользователям получать хеши объектов типа std::coroutine_handle<P>.

operator() специализации является noexcept.

Пример

См. также

hash
(C++11)
Функция хеширования
(шаблон класса)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/coroutine/coroutine_handle/hash

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API