mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2024-11-22 14:16:52 -08:00
25 lines
243 B
C
25 lines
243 B
C
|
#pragma once
|
||
|
|
||
|
|
||
|
template<typename N>
|
||
|
class Range
|
||
|
{
|
||
|
public:
|
||
|
N min;
|
||
|
N max;
|
||
|
|
||
|
Range()
|
||
|
: min(0), max(0)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Range(const N min, const N max)
|
||
|
: min(min), max(max)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Range(const Range& range)
|
||
|
: min(range.min), max(range.max)
|
||
|
{
|
||
|
}
|
||
|
};
|