Skip to main content

HasReset.ixx File

Concept detecting an optional reset() method. More...

Included Headers

#include <concepts>

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacecommon

Shared type definitions, concepts, and tags used across engine subsystems. More...

namespaceconcepts

Compile-time concepts for engine role classification and capability detection. More...

Description

Concept detecting an optional reset() method.

File Listing

The file content with the documentation metadata removed is:

1/**
2* @file HasReset.ixx
3 * @brief Concept detecting an optional reset() method.
4 */
5module;
6
7#include <concepts>
8
9export module helios.engine.common.concepts.HasReset;
10
12
13 /**
14 * @brief Constrains types that provide a `reset()` method returning void.
15 *
16 * @details Used by the Manager type-erasure wrapper to conditionally
17 * call `reset()` on concrete managers during level transitions or
18 * game restarts.
19 *
20 * @tparam T The type to constrain.
21 *
22 * @see Manager
23 * @see GameWorld::reset
24 */
25 template<typename T>
26 concept HasReset = requires(T& t) {
27 {t.reset() } -> std::same_as<void>;
28 };
29
30}
31
32

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.