interval: Add interval_vector

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-07-03 13:55:34 +02:00
parent 067cbddf64
commit 7731a20f56

View File

@ -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>;
}