Код: Выделить всё
#include
#include
template
concept Hashtable = requires(T a) {
{ std::hash{}(a) } -> std::size_t;
};
struct Foo {};
template
void Bar() {
std::cout
Type T is not a hashtable
Type T is a hashtable
< /code>
мой вопрос < /strong> < /p>
Можно ли специализироваться с использованием концепций? < /p>
Подробнее здесь: [url]https://stackoverflow.com/questions/55234054/partial-specialization-using-concepts[/url]
Мобильная версия