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:
parent
a3ba8fb4dc
commit
b446d0acda
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user