diff options
Diffstat (limited to 'arm_compute/runtime/Array.h')
-rw-r--r-- | arm_compute/runtime/Array.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/arm_compute/runtime/Array.h b/arm_compute/runtime/Array.h index 817d97a64d..9283273317 100644 --- a/arm_compute/runtime/Array.h +++ b/arm_compute/runtime/Array.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 Arm Limited. + * Copyright (c) 2016-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -26,7 +26,6 @@ #include "arm_compute/core/IArray.h" #include "arm_compute/core/Types.h" -#include "support/MemorySupport.h" #include <memory> @@ -38,16 +37,14 @@ class Array : public IArray<T> { public: /** Default constructor: empty array */ - Array() - : IArray<T>(0), _values(nullptr) + Array() : IArray<T>(0), _values(nullptr) { } /** Constructor: initializes an array which can contain up to max_num_points values * * @param[in] max_num_values Maximum number of values the array will be able to stored */ - Array(size_t max_num_values) - : IArray<T>(max_num_values), _values(arm_compute::support::cpp14::make_unique<T[]>(max_num_values)) + Array(size_t max_num_values) : IArray<T>(max_num_values), _values(std::make_unique<T[]>(max_num_values)) { } @@ -61,14 +58,6 @@ private: std::unique_ptr<T[]> _values; }; -/** Array of Key Points. */ -using KeyPointArray = Array<KeyPoint>; -/** Array of 2D Coordinates. */ -using Coordinates2DArray = Array<Coordinates2D>; -/** Array of Detection Windows. */ -using DetectionWindowArray = Array<DetectionWindow>; -/** Array of 2D Sizes. */ -using Size2DArray = Array<Size2D>; /** Array of uint8s. */ using UInt8Array = Array<uint8_t>; /** Array of uint16s. */ @@ -81,5 +70,5 @@ using Int16Array = Array<int16_t>; using Int32Array = Array<int32_t>; /** Array of floats. */ using FloatArray = Array<float>; -} +} // namespace arm_compute #endif /* ARM_COMPUTE_ARRAY_H */ |