Commit 5972620d authored by Astha Rai's avatar Astha Rai
Browse files

resovled errors in type utility file, added functionality to array utility file

parent 60d9a9c9
...@@ -38,6 +38,8 @@ struct Array ...@@ -38,6 +38,8 @@ struct Array
} }
__host__ __device__ constexpr const TData* begin() const { return &mData[0]; } __host__ __device__ constexpr const TData* begin() const { return &mData[0]; }
__host__ __device__ constexpr const TData* end() const { return &mData[NSize]; } __host__ __device__ constexpr const TData* end() const { return &mData[NSize]; }
__host__ __device__ constexpr TData* begin() { return &mData[0]; }
__host__ __device__ constexpr TData* end() { return &mData[NSize]; }
}; };
// empty Array // empty Array
......
...@@ -165,7 +165,7 @@ using std::is_reference_v; ...@@ -165,7 +165,7 @@ using std::is_reference_v;
using std::is_trivially_copyable; using std::is_trivially_copyable;
using std::is_trivially_copyable_v; using std::is_trivially_copyable_v;
using std::is_unsigned; using std::is_unsigned;
using std::remove_const; using std::remove_const_t;
using std::remove_cv; using std::remove_cv;
using std::remove_pointer; using std::remove_pointer;
using std::remove_reference; using std::remove_reference;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment