You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provides a lightweight view over a contiguous sequence of objects. A `span` provides a safe way to iterate over, and index into, objects that are arranged back-to-back in memory such as objects stored in a built-in array, `std::array`, or `std::vector`.
11
+
Provides a lightweight view over a contiguous sequence of objects. A `span` provides a safe way to iterate over and index into objects that are arranged back-to-back in memory. Such as objects stored in a built-in array, `std::array`, or `std::vector`.
12
12
13
13
If you typically access a sequence of back-to-back objects using a pointer and an index, a `span` is a safer, lightweight alternative.
14
14
@@ -56,7 +56,7 @@ class span;
56
56
|[`back`](#back) | Get the last element in the `span`.|
57
57
|[`data`](#data) | Get the address of the first element in the `span`.|
58
58
|[`front`](#front) | Get the first element in the `span`.|
59
-
|[`operator\[\]`](#op_at) | Access an element at a specified position.|
59
+
|[`operator[]`](#op_at) | Access an element at a specified position.|
60
60
| **Observers** | **Description** |
61
61
|[`empty`](#empty)| Test whether the `span` is empty.|
62
62
|[`size`](#size) | Get the number of elements in the `span`.|
@@ -67,7 +67,7 @@ class span;
67
67
| [`subspan`](#sub_view) | Get a subspan from anywhere in the `span`.|
68
68
| **Operators** | **Description** |
69
69
|[`span::operator=`](#op_eq)| Replace the `span`.|
70
-
|[`span::operator\[\]`](#op_at)| Get the element at the specified position. |
70
+
|[`span::operator[]`](#op_at)| Get the element at the specified position. |
0 commit comments