@@ -1245,6 +1245,7 @@ class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor :
1245
1245
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
1246
1246
using difference_type =
1247
1247
typename std::iterator_traits<iterator>::difference_type;
1248
+ using size_type = std::size_t ;
1248
1249
1249
1250
// The list of accessor constructors with their arguments
1250
1251
// -------+---------+-------+----+-----+--------------
@@ -1972,11 +1973,11 @@ class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor :
1972
1973
1973
1974
__SYCL2020_DEPRECATED (" get_count() is deprecated, please use size() instead" )
1974
1975
size_t get_count () const { return size (); }
1975
- size_t size () const noexcept { return getAccessRange ().size (); }
1976
+ size_type size () const noexcept { return getAccessRange ().size (); }
1976
1977
1977
- size_t byte_size () const noexcept { return size () * sizeof (DataT); }
1978
+ size_type byte_size () const noexcept { return size () * sizeof (DataT); }
1978
1979
1979
- size_t max_size () const noexcept {
1980
+ size_type max_size () const noexcept {
1980
1981
return empty () ? 0 : (std::numeric_limits<difference_type>::max)();
1981
1982
}
1982
1983
@@ -2746,15 +2747,16 @@ class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor
2746
2747
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
2747
2748
using difference_type =
2748
2749
typename std::iterator_traits<iterator>::difference_type;
2750
+ using size_type = std::size_t ;
2749
2751
2750
2752
template <access::decorated IsDecorated>
2751
2753
using accessor_ptr = local_ptr<value_type, IsDecorated>;
2752
2754
2753
2755
void swap (local_accessor &other) { std::swap (this ->impl , other.impl ); }
2754
2756
2755
- size_t byte_size () const noexcept { return this ->size () * sizeof (DataT); }
2757
+ size_type byte_size () const noexcept { return this ->size () * sizeof (DataT); }
2756
2758
2757
- size_t max_size () const noexcept {
2759
+ size_type max_size () const noexcept {
2758
2760
return empty () ? 0 : (std::numeric_limits<difference_type>::max)();
2759
2761
}
2760
2762
0 commit comments