allow access to vector data insides
parent
9db3f12048
commit
898760e938
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
include(cmake/color.cmake)
|
||||
|
||||
set(BLT_VERSION 0.16.8)
|
||||
set(BLT_VERSION 0.16.9)
|
||||
set(BLT_TEST_VERSION 0.0.1)
|
||||
|
||||
set(BLT_TARGET BLT)
|
||||
|
|
|
@ -232,6 +232,16 @@ namespace blt
|
|||
return (du / dv) * v;
|
||||
}
|
||||
|
||||
inline auto* data()
|
||||
{
|
||||
return elements;
|
||||
}
|
||||
|
||||
[[nodiscard]] inline const auto* data() const
|
||||
{
|
||||
return elements;
|
||||
}
|
||||
|
||||
auto begin()
|
||||
{
|
||||
return elements.begin();
|
||||
|
|
Loading…
Reference in New Issue