Skip to content

Commit

Permalink
Add "value_type" to vec
Browse files Browse the repository at this point in the history
Add a new type alias `value_type` to `vec`, making it more consistent
with `marray`.  This makes it much easier to define the templated
versions of the builtin functions because we can rely on this type
alias for both `vec` and `marray`.
  • Loading branch information
gmlueck committed Jul 21, 2023
1 parent 8d18420 commit f4ccdcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adoc/headers/vec.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct elem {
template <typename DataT, int NumElements> class vec {
public:
using element_type = DataT;
using value_type = DataT;

#ifdef __SYCL_DEVICE_ONLY__
using vector_t = __unspecified__;
Expand Down

0 comments on commit f4ccdcf

Please sign in to comment.