commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
Loading...
Searching...
No Matches
comms::OriginRegistrar< T > Struct Template Reference

A self-registering object: constructing one registers T's factory into the GlobalOriginRegistry. More...

#include <origin.hpp>

Detailed Description

template<typename T>
struct comms::OriginRegistrar< T >

A self-registering object: constructing one registers T's factory into the GlobalOriginRegistry.

COMMONS_REGISTER_ORIGIN emits one as an inline object so registration happens at static init. T must be default-constructible and expose a static constexpr std::string_view KIND.


The documentation for this struct was generated from the following file: