add parray::is_filled_with
This commit is contained in:
@@ -291,6 +291,15 @@ struct parray {
|
|||||||
this->items[x] = v;
|
this->items[x] = v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_filled_with(ItemT v) const {
|
||||||
|
for (size_t x = 0; x < Count; x++) {
|
||||||
|
if (this->items[x] != v) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user