interval: Add interval_vector
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
067cbddf64
commit
7731a20f56
@ -6,6 +6,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "sal.hpp"
|
||||
#include <vector>
|
||||
|
||||
namespace stdex
|
||||
{
|
||||
@ -59,4 +60,7 @@ namespace stdex
|
||||
///
|
||||
inline operator bool() const { return start <= end; }
|
||||
};
|
||||
|
||||
template <class T, class _Alloc = std::allocator<interval<T>>>
|
||||
using interval_vector = std::vector<interval<T>, _Alloc>;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user