Skip to content

Commit 2ebf0ee

Browse files
committed
Fix "std::size_type" find-and-replace error
"size_t" => "std::size_t" change modified "size_type" by mistake.
1 parent 5713c71 commit 2ebf0ee

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

adoc/headers/accessorBuffer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class accessor {
4444
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
4545
using difference_type =
4646
typename std::iterator_traits<iterator>::difference_type;
47-
using std::size_type = std::size_t;
47+
using size_type = std::size_t;
4848

4949
accessor();
5050

@@ -133,11 +133,11 @@ class accessor {
133133

134134
bool is_placeholder() const;
135135

136-
std::size_type byte_size() const noexcept;
136+
size_type byte_size() const noexcept;
137137

138-
std::size_type size() const noexcept;
138+
size_type size() const noexcept;
139139

140-
std::size_type max_size() const noexcept;
140+
size_type max_size() const noexcept;
141141

142142
// Deprecated
143143
std::size_t get_size() const;

adoc/headers/accessorHost.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class host_accessor {
1818
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
1919
using difference_type =
2020
typename std::iterator_traits<iterator>::difference_type;
21-
using std::size_type = std::size_t;
21+
using size_type = std::size_t;
2222

2323
host_accessor();
2424

@@ -65,11 +65,11 @@ class host_accessor {
6565

6666
void swap(host_accessor& other);
6767

68-
std::size_type byte_size() const noexcept;
68+
size_type byte_size() const noexcept;
6969

70-
std::size_type size() const noexcept;
70+
size_type size() const noexcept;
7171

72-
std::size_type max_size() const noexcept;
72+
size_type max_size() const noexcept;
7373

7474
bool empty() const noexcept;
7575

adoc/headers/accessorLocal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ template <typename DataT, int Dimensions = 1> class local_accessor {
1616
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
1717
using difference_type =
1818
typename std::iterator_traits<iterator>::difference_type;
19-
using std::size_type = std::size_t;
19+
using size_type = std::size_t;
2020

2121
local_accessor();
2222

@@ -33,11 +33,11 @@ template <typename DataT, int Dimensions = 1> class local_accessor {
3333

3434
void swap(local_accessor& other);
3535

36-
std::size_type byte_size() const noexcept;
36+
size_type byte_size() const noexcept;
3737

38-
std::size_type size() const noexcept;
38+
size_type size() const noexcept;
3939

40-
std::size_type max_size() const noexcept;
40+
size_type max_size() const noexcept;
4141

4242
bool empty() const noexcept;
4343

adoc/headers/exception.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ class exception_list {
3939
using value_type = std::exception_ptr;
4040
using reference = value_type&;
4141
using const_reference = const value_type&;
42-
using std::size_type = std::size_t;
42+
using size_type = std::size_t;
4343
using iterator = /*unspecified*/;
4444
using const_iterator = /*unspecified*/;
4545

46-
std::size_type size() const;
46+
size_type size() const;
4747
iterator begin() const; // first asynchronous exception
4848
iterator end() const; // refer to past-the-end last asynchronous exception
4949
};

0 commit comments

Comments
 (0)