1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-23 19:54:16 +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
parent a3ba8fb4dc
commit b446d0acda

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++) {