8#ifndef SkSafeRange_DEFINED
9#define SkSafeRange_DEFINED
21 explicit operator bool()
const {
return fOK; }
23 bool ok()
const {
return fOK; }
30 if (
value >
static_cast<uint64_t
>(
max)) {
34 return static_cast<T>(
value);
int checkGE(int value, int min)
T checkLE(uint64_t value, T max)
static float max(float r, float g, float b)
static float min(float r, float g, float b)