There was an error fetching the commit references. Please try again later.
Implemented Array::resize using the STL semantics almost exactly
- if ValueType is a fundamental type, the Array behaves the same as before (allocated elements are initialized to indeterminate values) - otherwise, allocated elements are value-initialized using MemoryOperations::construct and destructed using MemoryOperations::destruct before their deallocation
parent
4bb7b41e
No related branches found
No related tags found
Showing
- src/TNL/Algorithms/MemoryOperations.h 52 additions, 0 deletionssrc/TNL/Algorithms/MemoryOperations.h
- src/TNL/Algorithms/MemoryOperationsCuda.hpp 51 additions, 1 deletionsrc/TNL/Algorithms/MemoryOperationsCuda.hpp
- src/TNL/Algorithms/MemoryOperationsHost.hpp 48 additions, 0 deletionssrc/TNL/Algorithms/MemoryOperationsHost.hpp
- src/TNL/Algorithms/MemoryOperationsSequential.hpp 42 additions, 0 deletionssrc/TNL/Algorithms/MemoryOperationsSequential.hpp
- src/TNL/Containers/Array.h 59 additions, 8 deletionssrc/TNL/Containers/Array.h
- src/TNL/Containers/Array.hpp 82 additions, 4 deletionssrc/TNL/Containers/Array.hpp
- src/UnitTests/Containers/ArrayTest.h 65 additions, 2 deletionssrc/UnitTests/Containers/ArrayTest.h
Loading
Please register or sign in to comment