assert vector is nonempty in SerialQueue::Enqueue
This commit is contained in:
parent
e480a0724c
commit
6aef6833b7
|
@ -110,12 +110,14 @@ namespace backend {
|
|||
|
||||
template<typename T>
|
||||
void SerialQueue<T>::Enqueue(const std::vector<T>& values, Serial serial) {
|
||||
ASSERT(values.size() > 0);
|
||||
ASSERT(Empty() || storage.back().first <= serial);
|
||||
storage.emplace_back(SerialPair(serial, {values}));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void SerialQueue<T>::Enqueue(std::vector<T>&& values, Serial serial) {
|
||||
ASSERT(values.size() > 0);
|
||||
ASSERT(Empty() || storage.back().first <= serial);
|
||||
storage.emplace_back(SerialPair(serial, {values}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue