#ifndef SLANG_CORE_RANGE_H #define SLANG_CORE_RANGE_H namespace Slang { template struct Range { T begin = 0; T end = 0; bool inRange(T val) const { return val >= begin && val < end; } }; template Range makeRange(T begin, T end) { Range result; result.begin = begin; result.end = end; return result; } } // namespace Slang #endif // SLANG_CORE_RANGE_H