Replace usages of tl_assert with dbg_assert

This commit is contained in:
Robert Müller 2022-05-15 18:55:43 +02:00
parent 8a65e8386b
commit 535fbd28fa

View file

@ -186,27 +186,27 @@ public:
bool empty() const { return begin >= end; }
void pop_front()
{
tl_assert(!empty());
dbg_assert(!empty(), "empty");
begin++;
}
void pop_back()
{
tl_assert(!empty());
dbg_assert(!empty(), "empty");
end--;
}
T &front()
{
tl_assert(!empty());
dbg_assert(!empty(), "empty");
return *begin;
}
T &back()
{
tl_assert(!empty());
dbg_assert(!empty(), "empty");
return *(end - 1);
}
T &index(unsigned i)
{
tl_assert(i < (unsigned)(end - begin));
dbg_assert(i < (unsigned)(end - begin), "out of range");
return begin[i];
}
unsigned size() const { return (unsigned)(end - begin); }