3#include "terminalpp/colour.hpp"
4#include "terminalpp/effect.hpp"
6#include <boost/container_hash/hash.hpp>
24 boost::hash_combine(seed, attr.foreground_colour_);
25 boost::hash_combine(seed, attr.background_colour_);
26 boost::hash_combine(seed, attr.intensity_);
27 boost::hash_combine(seed, attr.underlining_);
28 boost::hash_combine(seed, attr.polarity_);
29 boost::hash_combine(seed, attr.blinking_);
41 colour foreground_colour_{};
42 colour background_colour_{};
43 intensity intensity_{};
44 underlining underlining_{};
54std::ostream &operator<<(std::ostream &out, attribute
const &attr);
61struct hash<terminalpp::attribute>
64 using result_type = std::size_t;
66 [[nodiscard]] result_type operator()(
69 return hash_value(attr);
A structure that carries around the presentation attributes of an ANSI element.
Definition attribute.hpp:17
constexpr friend auto operator<=>(attribute const &lhs, attribute const &rhs) noexcept=default
Relational operators for attributes.
friend std::size_t hash_value(attribute const &attr) noexcept
Hash function.
Definition attribute.hpp:21
Structure representing a sum type of the available colour styles.
Definition colour.hpp:218