Core/Stack[Array|Vector]: Are now default-initializable and movable

This commit is contained in:
Lynix
2019-09-29 16:41:26 +02:00
parent 5fce345b3e
commit 31e6bfe43a
5 changed files with 34 additions and 3 deletions

View File

@@ -24,6 +24,14 @@ namespace Nz
* \class Nz::StackArray
* \brief Core class that represents a stack-allocated (if alloca is present) array
*/
template<typename T>
StackArray<T>::StackArray() :
m_size(0),
m_ptr(nullptr)
{
}
template<typename T>
StackArray<T>::StackArray(T* stackMemory, std::size_t size) :
m_size(size),