From b446d0acda1a99ea9c0a0477a26258ca186dc134 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 20 Jan 2025 16:22:54 +0100 Subject: [PATCH] [util] Add parameter to initialize small_vector with a given size Matches std::vector. --- src/util/util_small_vector.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/util_small_vector.h b/src/util/util_small_vector.h index 8d7c37d64..24903657e 100644 --- a/src/util/util_small_vector.h +++ b/src/util/util_small_vector.h @@ -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++) {