MCPcopy Create free account
hub / github.com/Neargye/magic_enum / empty

Method empty

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

Source from the content-addressed store, hash-verified

38 std::uint8_t b {};
39
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

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected