MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / is_zero_int

Class is_zero_int

extlibs/fmt/include/fmt/printf.h:54–65  ·  view source on GitHub ↗

An argument visitor that returns true iff arg is a zero integer.

Source from the content-addressed store, hash-verified

52
53// An argument visitor that returns true iff arg is a zero integer.
54class is_zero_int {
55 public:
56 template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
57 bool operator()(T value) {
58 return value == 0;
59 }
60
61 template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
62 bool operator()(T) {
63 return false;
64 }
65};
66
67template <typename T> struct make_unsigned_or_bool : std::make_unsigned<T> {};
68

Callers 1

formatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected