Owning shortcut alternatives; one registration invokes at most once per completed event.
More...
#include <shortcut.hpp>
|
|
std::vector< key::Chord > | alternatives |
| | Owned values, never views into a caller string or initializer list.
|
|
std::vector< ShortcutSequence > | sequences |
| | Owned sequences sharing the alternative budget with single chords.
|
Owning shortcut alternatives; one registration invokes at most once per completed event.
◆ Shortcut() [1/3]
| portals::Shortcut::Shortcut |
( |
std::initializer_list< key::Chord > | chords | ) |
|
|
inlineexplicit |
- Parameters
-
| chords | Alternatives copied from storage borrowed only during construction. |
◆ Shortcut() [2/3]
| portals::Shortcut::Shortcut |
( |
const Shortcut & | other | ) |
|
|
default |
- Parameters
-
| other | Owning alternatives copied without retaining a source view. |
◆ Shortcut() [3/3]
| portals::Shortcut::Shortcut |
( |
Shortcut && | other | ) |
|
|
inline |
- Parameters
-
| other | Owning alternatives transferred; moved-from storage remains empty. This potentially throwing construction deliberately avoids a noexcept vector move: some debug standard libraries allocate an iterator proxy in that move. |
◆ operator=() [1/2]
- Parameters
-
| other | Alternatives copied into this value. |
- Returns
- This owning shortcut; allocation failures propagate to the checked caller.
◆ operator=() [2/2]
- Parameters
-
| other | Alternatives exchanged with this value; both objects remain valid. |
- Returns
- This owning shortcut without allocating or invoking a vector move.
The documentation for this struct was generated from the following file: