@@ -37,15 +37,15 @@ namespace ble {
37
37
* Immutable view to an array.
38
38
*
39
39
* Array views encapsulate the pointer to an array and its size into a single
40
- * object however it does not manage the lifetime of the array viewed.
41
- * Instances of ArrayView can be used to replace the traditional pair of pointer
40
+ * object; however, it does not manage the lifetime of the array viewed.
41
+ * You can use instances of ArrayView to replace the traditional pair of pointer
42
42
* and size arguments in function calls.
43
43
*
44
- * The size member function can be used to query the number of elements present
45
- * in the array and overloads of the subscript operator allow code using
44
+ * You can use the size member function to query the number of elements present
45
+ * in the array, and overloads of the subscript operator allow code using
46
46
* this object to access to the content of the array viewed.
47
47
*
48
- * @note ArrayView instances can be created easily with the help of the function
48
+ * @note You can create ArrayView instances with the help of the function
49
49
* template make_ArrayView() and make_const_ArrayView().
50
50
*
51
51
* @tparam T type of objects held by the array.
@@ -56,7 +56,7 @@ struct ArrayView {
56
56
/* *
57
57
* Construct a view to an empty array.
58
58
*
59
- * @post a call to size() will return 0 and data() will return NULL.
59
+ * @post a call to size() will return 0, and data() will return NULL.
60
60
*/
61
61
ArrayView () : _array(0 ), _size(0 ) { }
62
62
@@ -79,7 +79,7 @@ struct ArrayView {
79
79
*
80
80
* @tparam Size Number of elements of T presents in the array.
81
81
*
82
- * @post a call to size() will return Size and data() will return
82
+ * @post a call to size() will return Size, and data() will return
83
83
* a pointer to elements.
84
84
*/
85
85
template <size_t Size>
@@ -172,7 +172,7 @@ struct ArrayView {
172
172
* @param lhs Left hand side of the binary operation.
173
173
* @param rhs Right hand side of the binary operation.
174
174
*
175
- * @return True if arrays in input does not have the same size or the same
175
+ * @return True if arrays in input do not have the same size or the same
176
176
* content and false otherwise.
177
177
*/
178
178
friend bool operator !=(const ArrayView& lhs, const ArrayView& rhs)
@@ -196,7 +196,7 @@ struct ArrayView {
196
196
*
197
197
* @return The ArrayView to elements.
198
198
*
199
- * @note This helper avoid the typing of template parameter when ArrayView are
199
+ * @note This helper avoids the typing of template parameter when ArrayView is
200
200
* created 'inline'.
201
201
*/
202
202
template <typename T, size_t Size>
@@ -215,7 +215,7 @@ ArrayView<T> make_ArrayView(T (&elements)[Size])
215
215
*
216
216
* @return The ArrayView to array_ptr with a size of array_size.
217
217
*
218
- * @note This helper avoid the typing of template parameter when ArrayView are
218
+ * @note This helper avoids the typing of template parameter when ArrayView is
219
219
* created 'inline'.
220
220
*/
221
221
template <typename T>
@@ -233,7 +233,7 @@ ArrayView<T> make_ArrayView(T* array_ptr, size_t array_size)
233
233
* @param elements The array viewed.
234
234
* @return The ArrayView to elements.
235
235
*
236
- * @note This helper avoid the typing of template parameter when ArrayView are
236
+ * @note This helper avoids the typing of template parameter when ArrayView is
237
237
* created 'inline'.
238
238
*/
239
239
template <typename T, size_t Size>
@@ -252,7 +252,7 @@ ArrayView<const T> make_const_ArrayView(T (&elements)[Size])
252
252
*
253
253
* @return The ArrayView to array_ptr with a size of array_size.
254
254
*
255
- * @note This helper avoid the typing of template parameter when ArrayView are
255
+ * @note This helper avoids the typing of template parameter when ArrayView is
256
256
* created 'inline'.
257
257
*/
258
258
template <typename T>
0 commit comments