MCPcopy Create free account
hub / github.com/Neargye/magic_enum / operator==

Method operator==

example/example_containers_array.cpp:42–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 [[nodiscard]] constexpr bool empty() { return std::equal_to{}(r, g) && std::equal_to{}(g, b) && std::equal_to{}(b, 0); }
41
42 [[nodiscard]] constexpr bool operator==(RGB rgb) const noexcept { return std::equal_to{}(r, rgb.r) && std::equal_to{}(g, rgb.g) && std::equal_to{}(b, rgb.b); }
43
44 friend std::ostream& operator<<(std::ostream& ostream, RGB rgb) {
45 ostream << "R=" << static_cast<std::uint32_t>(rgb.r) << " G=" << static_cast<std::uint32_t>(rgb.g) << " B=" << static_cast<std::uint32_t>(rgb.b);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected