hpx/actions_base/reflect_action.hpp#

Defined in header hpx/actions_base/reflect_action.hpp.

See Public API for a list of names and headers that are part of the public HPX API.

Reflection-based action definition for HPX remote operations.

This header provides reflect_action<F>, a C++26 reflection-based replacement for the HPX_PLAIN_ACTION and HPX_REGISTER_ACTION macros. Instead of verbose boilerplate, users write a single line:

using compute_action = HPX_ACTION(app::compute);

The action name, function pointer type, arity, and registration are all derived automatically at compile time using C++26 static reflection.