/
niceSOFT
/
doxygen
Обзор
Документация
Войти
/
niceSOFT
/
doxygen
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testing/114_concept.cpp
11 строк
443 B
Dimitri van Heesch
Add support for specifying requirements
31 дек 2025, 00:08
Не верифицирован
31 дек 2025, 00:08
7cbd535
Код
Авторство
О чём код?
// objective: test C++20 concept with embedded doxygen style comments // check: concept_hashable.xml /// Declaration of the concept "Hashable", which is satisfied by any type `T` template<typename T> concept Hashable = requires(T a) { /// For values `a` of type `T`, the expression `std::hash<T>{}(a)` /// should compile and its result is convertible to `std::size_t` { std::hash<T>{}(a) } -> std::convertible_to<std::size_t>; };