3#include "telnetpp/core.hpp"
18 explicit constexpr command(command_type cmnd) noexcept : command_(cmnd)
25 [[nodiscard]]
constexpr command_type
value() const noexcept
31 command_type command_;
37constexpr bool operator==(command
const &lhs, command
const &rhs)
noexcept
39 return lhs.value() == rhs.value();
45constexpr bool operator<(command
const &lhs, command
const &rhs)
noexcept
47 return lhs.value() < rhs.value();
54std::ostream &operator<<(std::ostream &out, command
const &cmd);
A class that encapsulates the value of a Telnet command.
Definition command.hpp:13
constexpr command_type value() const noexcept
Returns the value of the command.
Definition command.hpp:25
constexpr command(command_type cmnd) noexcept
Constructor.
Definition command.hpp:18