IsZeroInt::visit(arg) returns true iff arg is a zero integer.
| 191 | |
| 192 | // IsZeroInt::visit(arg) returns true iff arg is a zero integer. |
| 193 | class IsZeroInt : public fmt::internal::ArgVisitor<IsZeroInt, bool> { |
| 194 | public: |
| 195 | template <typename T> |
| 196 | bool visit_any_int(T value) { return value == 0; } |
| 197 | }; |
| 198 | |
| 199 | // Parses an unsigned integer advancing s to the end of the parsed input. |
| 200 | // This function assumes that the first character of s is a digit. |