[helpers] Add conversion from FixedVector to std::vector (#12179)

This commit is contained in:
Clyde Stubbs authored and Jonathan Swoboda committed 2025-12-03 10:50:28 -05:00
1 parent 48caff13c9
commit 73fa9230e6
1 file changed
+3
+3
View File
@@ -225,6 +225,9 @@ template<typename T> class FixedVector {
other.reset_();
}
// Allow conversion to std::vector
operator std::vector<T>() const { return {data_, data_ + size_}; }
FixedVector &operator=(FixedVector &&other) noexcept {
if (this != &other) {
// Delete our current data