Skip to main content

HasClear.ixx File

Concept detecting an optional clear() 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 clear() method.

File Listing

The file content with the documentation metadata removed is:

1/**
2* @file HasClear.ixx
3 * @brief Concept detecting an optional clear() method.
4 */
5module;
6
7#include <concepts>
8
9export module helios.engine.common.concepts.HasClear;
10
12
13 /**
14 * @brief Constrains types that provide a noexcept-less `clear()` method returning void.
15 *
16 * @details Used by IsCommandBuffer to verify that a concrete command buffer
17 * supports discarding all queued commands without executing them.
18 *
19 * @tparam T The type to constrain.
20 *
21 * @see IsCommandBuffer
22 * @see CommandBuffer
23 */
24 template<typename T>
25 concept HasClear = requires(T& t) {
26 {t.clear() } -> std::same_as<void>;
27 };
28
29}
30
31

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.