1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-04 10:29:15 +01:00

[util] Add parameter to initialize small_vector with a given size

Matches std::vector.
This commit is contained in:
Philip Rebohle 2025-01-20 16:22:54 +01:00 committed by Philip Rebohle
parent b73f9d8ecb
commit 53e5c4875f

View File

@ -19,6 +19,10 @@ namespace dxvk {
small_vector() { }
small_vector(size_t size) {
resize(size);
}
small_vector(const small_vector& other) {
reserve(other.m_size);
for (size_t i = 0; i < other.m_size; i++) {