Skip to main content

IsCommandHandlerLike.ixx File

Concept constraining types that can handle specific commands. More...

Included Headers

#include <concepts>

Namespaces Index

namespacehelios
namespaceengine
namespaceruntime
namespacemessaging
namespacecommand
namespaceconcepts

Description

Concept constraining types that can handle specific commands.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <concepts>
8
9export module helios.engine.runtime.messaging.command.concepts.IsCommandHandlerLike;
10
11export namespace helios::engine::runtime::messaging::command::concepts {
12
19 template<typename OwningT, typename... CommandType>
20 concept IsCommandHandlerLike = (requires(OwningT& owner, const CommandType& cmd) {
21 { owner.submit(cmd) } noexcept -> std::same_as<bool>;} && ...);
22}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.