|
Stratax 0.2.0
|
Go to the source code of this file.
Namespaces | |
| namespace | stratax |
| namespace | stratax::core |
| namespace | stratax::core::validation |
Functions | |
| std::size_t | stratax::core::validation::nonnegative_index (std::ptrdiff_t value, const char *message) |
| Converts a signed index to std::size_t after rejecting negatives. | |
| std::size_t | stratax::core::validation::normalize_index (std::ptrdiff_t value, std::size_t size, const char *message) |
| Normalizes a potentially negative index against a container size. | |
| void | stratax::core::validation::require_index (std::size_t index, std::size_t size, const char *message) |
| Requires an index to be less than a size. | |
| void | stratax::core::validation::require_at_most (std::size_t value, std::size_t upper, const char *message) |
| Requires a value to be less than or equal to an upper bound. | |