@@ -524,12 +524,13 @@ Basically, the whole system relies on a handful of classes. In particular:
524524 associative containers or for positional accesses in a vector or an array.
525525
526526 An external generator can also be used if needed. In fact, ` type_index ` can be
527- specialized by type and is also _ sfinae-friendly _ in order to allow more
527+ specialized by type or constrained with a concept in order to allow more
528528 refined specializations such as:
529529
530530 ``` cpp
531531 template <typename Type>
532- struct entt ::type_index<Type, std::void_d<decltype(Type::index())>> {
532+ requires requires { { Type::index() } -> std::same_as< entt::id_type > ; }
533+ struct entt::type_index<Type > {
533534 static entt::id_type value() noexcept {
534535 return Type::index();
535536 }
@@ -558,8 +559,8 @@ Basically, the whole system relies on a handful of classes. In particular:
558559 identifiers remain stable across executions. Moreover, they are generated
559560 at runtime and are no longer a compile-time thing.
560561
561- As it happens with ` type_index ` , also ` type_hash ` is a _ sfinae-friendly _ class
562- that can be specialized in order to customize its behavior globally or on a
562+ As it happens with ` type_index ` , also ` type_hash ` can be specialized or
563+ constrained with a concept in order to customize its behavior globally or on a
563564 per-type or per-traits basis.
564565
565566* The name associated with a given type:
@@ -589,8 +590,8 @@ Basically, the whole system relies on a handful of classes. In particular:
589590 purposes. Users can prevent the library from using these features by means of
590591 the `ENTT_STANDARD_CPP` definition. In this case, the name is just empty.
591592
592- As it happens with `type_index`, also `type_name` is a _sfinae-friendly_ class
593- that can be specialized in order to customize its behavior globally or on a
593+ As it happens with `type_index`, also `type_name` can be specialized or
594+ constrained with a concept in order to customize its behavior globally or on a
594595 per-type or per-traits basis.
595596
596597These are then combined into utilities that aim to offer an API that is somewhat
0 commit comments