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

Method all

include/magic_enum/magic_enum_containers.hpp:659–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657 }
658
659 [[nodiscard]] constexpr bool all() const noexcept {
660 if constexpr (base_type_count == 0) {
661 return true;
662 }
663
664 for (std::size_t i = 0; i < base_type_count - (not_interested > 0); ++i) {
665 auto check = ~a[i];
666 if (check) {
667 return false;
668 }
669 }
670
671 if constexpr (not_interested > 0) {
672 return a[base_type_count - 1] == last_value_max;
673 }
674 }
675
676 [[nodiscard]] constexpr bool any() const noexcept {
677 for (auto& v : a) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected