Skip to content

File command.h

FileList > command.h

Go to the source code of this file

  • #include <compare>
  • #include <cstdint>
  • #include "shared_types.h"
  • #include "utilities.h"

Classes

Type Name
class AutoCommand <typename Derived>
class Command
Abstract base class for commands in the command pattern.
class SetStanceCommand
class SetStrategyCommand

Public Functions

Type Name
constexpr auto operator<=> (const Command & left, const Command & right)
Spaceship overload for comparing command execution times.

Public Functions Documentation

function operator<=>

Spaceship overload for comparing command execution times.

constexpr auto operator<=> (
    const Command & left,
    const Command & right
) 

Parameters:

  • left The left-hand side command.
  • right The right-hand side command.

Returns:

A weak ordering indicating which command should run first.



The documentation for this class was generated from the following file command.h