unfinished svo vector
parent
bccd2f4ba3
commit
1caae86e43
|
@ -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)
|
||||
|
|
|
@ -264,10 +264,11 @@ 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;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue