unfinished svo vector

v1
Brett 2024-06-30 13:26:54 -04:00
parent bccd2f4ba3
commit 1caae86e43
2 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake)
set(BLT_VERSION 0.17.25)
set(BLT_VERSION 0.17.26)
set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT)

View File

@ -264,7 +264,8 @@ namespace blt
{
if (v1.size() != v2.size())
return false;
for (blt::size_t i = 0; i < v1.size(); i++) {
for (blt::size_t i = 0; i < v1.size(); i++)
{
if (v1[i] != v2[i])
return false;
}
@ -534,6 +535,18 @@ namespace blt
}
};
template<typename T, blt::size_t BUFFER_SIZE = 8 / sizeof(T), typename ALLOC = std::allocator<T>>
class svo_vector
{
public:
private:
union buffer_data {
T* buffer_pointer;
T buffer[BUFFER_SIZE];
};
};
}
#endif //BLT_VECTOR_H