|
Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
|
Percentage value type for progress tracking. More...
#include <algorithm>#include <cstdint>#include <string>

Go to the source code of this file.
Classes | |
| class | Recognition::Utility::Percentage |
| A type-safe percentage value in the range [0, 100]. More... | |
Namespaces | |
| namespace | Recognition |
| Root namespace for the libmagicxx library. | |
| namespace | Recognition::Utility |
| Utility components for the libmagicxx library. | |
Percentage value type for progress tracking.
This file defines the Percentage class, a simple value type that represents a percentage in the range [0, 100]. It provides automatic clamping to ensure values always remain valid.
Direct construction:
From completed/total steps: