|
commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
|
A self-registering object: constructing one registers T's factory into the GlobalOriginRegistry.
More...
#include <origin.hpp>
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.