Exact overload-selection target for a bare short command in existing callback templates.
More...
#include <quit_command.hpp>
|
|
using | Function = void (*)(std::source_location) |
| | Source-location-aware short command signature used for exact overload selection.
|
|
| | QuitCommand (Function command, std::source_location origin=std::source_location::current()) noexcept |
|
void | operator() () const |
| | Invoke the selected short command with its retained registration origin.
|
|
|
Function | command |
| | Exact source-location-aware command target.
|
|
std::source_location | origin |
| | Original registration site, never an invocation-internal location.
|
Exact overload-selection target for a bare short command in existing callback templates.
◆ QuitCommand()
| portals::ui::detail::QuitCommand::QuitCommand |
( |
Function | command, |
|
|
std::source_location | origin = std::source_location::current() ) |
|
inlinenoexcept |
- Parameters
-
| command | Exact short command; no default arguments survive a function pointer. |
| origin | Implicit conversion site, replaced by an explicit registration origin when supplied. |
The documentation for this struct was generated from the following file: