Files
Triforce-Source/gpu/compat/boost/container/small_vector.hpp
ruckus7382sfgsgdf 34b3683441 Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:32:48 -06:00

15 lines
517 B
C++

// boost::container::small_vector for suyu's shader_recompiler: a std::vector with the inline capacity reserved.
#pragma once
#include <cstddef>
#include <initializer_list>
#include <vector>
namespace boost::container {
template <typename T, std::size_t N, typename Alloc = void>
class small_vector : public std::vector<T> {
public:
using std::vector<T>::vector;
small_vector() { this->reserve(N); }
small_vector(std::initializer_list<T> list) : std::vector<T>(list) {}
};
} // namespace boost::container