doc: cleanup

This commit is contained in:
skypjack
2025-12-05 14:38:47 +01:00
parent 29dba57433
commit d878089ecc
2 changed files with 4 additions and 4 deletions

View File

@@ -230,14 +230,14 @@ For a deduced concept, inheritance is achieved in a few steps:
```cpp
struct DrawableAndErasable: entt::type_list<> {
template<typename Base>
struct type: typename Drawable::type<Base> {
struct type: Drawable::type<Base> {
static constexpr auto base = Drawable::impl<Drawable::type<entt::poly_inspector>>::size;
void erase() { entt::poly_call<base + 0>(*this); }
};
template<typename Type>
using impl = entt::value_list_cat_t<
typename Drawable::impl<Type>,
Drawable::impl<Type>,
entt::value_list<&Type::erase>
>;
};

View File

@@ -57,8 +57,8 @@ Here is a minimal example for the sake of curiosity:
```cpp
struct my_process: entt::process {
using allocator_type = typename entt::process::allocator_type;
using delta_type = typename entt::process::delta_type;
using allocator_type = entt::process::allocator_type;
using delta_type = entt::process::delta_type;
my_process(const allocator_type &allocator, delta_type delay)
: entt::process{allocator},