Skip to content

Commit 84eede3

Browse files
committed
Add FixedVector::available()
1 parent 834637a commit 84eede3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

util/fixed_vector.hh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public:
5050
return MaxElements;
5151
}
5252

53+
size_t available() {
54+
return max_size() - size();
55+
}
56+
5357
void clear() {
5458
back_idx = 0;
5559
}

0 commit comments

Comments
 (0)