Skip to content

Commit 8a8f3f5

Browse files
Tyler WhitneyTyler Whitney
authored andcommitted
address PR feedback
1 parent 0e849c1 commit 8a8f3f5

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

docs/standard-library/span-class.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: "span Class (C++ Standard Library)| Microsoft Docs"
2+
title: "span class (C++ Standard Library)| Microsoft Docs"
33
ms.date: "05/28/2020"
44
f1_keywords: ["span/std::span", "span/std::span::const_pointer", "span/std::span::const_reference", "span/std::span::difference_type", "span/std::span::element_type", "span/std::span::iterator", "span/std::span::pointer", "span/std::span::reference", "span/std::span::reverse_iterator", "span/std::span::size_type", "span/std::span::value_type", "span/std::span::at", "span/std::span::assign", "span/std::span::back", "span/std::span::begin", "span/std::span::data", "span/std::span::empty", "span/std::span::end", "span/std::span::front", "span/std::span::rbegin", "span/std::span::rend",
55
"span/std::span::size", "span/std::span::size_bytes", "span/std::span::operator=", "span/std::span::operator[]"]
66
helpviewer_keywords: ["std::span [C++]", "std::span [C++], const_pointer", "std::span [C++], const_reference", "std::span [C++], difference_type", "std::span [C++], element_type", "std::span [C++], iterator", "std::span [C++], pointer", "std::span [C++], reference", "std::span [C++], reverse_iterator", "std::span [C++], size_type", "std::span [C++], value_type", "std::span [C++], assign", "std::span [C++], at", "std::span [C++], back", "std::span [C++], begin", "std::span [C++], data", "std::span [C++], empty", "std::span [C++], end", "std::span [C++], front", "std::span [C++], rbegin", "std::span [C++], rend", "std::span [C++], size", "std::span [C++], size_bytes"]
77
---
8-
# span Class (C++ Standard Library)
8+
# span class (C++ Standard Library)
99

1010
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`.
1111

@@ -89,7 +89,7 @@ Get the last element in the span.
8989
constexpr reference back() const noexcept;
9090
```
9191

92-
### Return Value
92+
### Return value
9393

9494
A reference to the last element in the span.
9595

@@ -156,7 +156,7 @@ Get a pointer to the beginning of the span data.
156156
constexpr pointer data() const noexcept;
157157
```
158158

159-
### Return Value
159+
### Return value
160160

161161
A pointer to the first item stored in the span.
162162

@@ -251,7 +251,7 @@ Whether the span contains elements.
251251
constexpr bool empty() const noexcept;
252252
```
253253

254-
### Return Value
254+
### Return value
255255

256256
Returns `true` if `this->size() == 0`. Otherwise `false`.
257257

@@ -279,7 +279,7 @@ Get an iterator to the end of the span.
279279
constexpr iterator end() const noexcept;
280280
```
281281

282-
### Return Value
282+
### Return value
283283

284284
An iterator pointing just beyond the end of the span.
285285

@@ -314,7 +314,7 @@ template <size_t count> constexpr auto first() const noexcept;
314314
The number of elements from the front of this span to put in the subspan.
315315
The number of elements is specified as a parameter to the template, or to the function, as illustrated below.
316316
317-
### Return Value
317+
### Return value
318318
319319
A span that contains `count` elements from the front of this span.
320320
@@ -364,7 +364,7 @@ Get the first element in the span.
364364
constexpr reference front() const noexcept;
365365
```
366366

367-
### Return Value
367+
### Return value
368368

369369
A reference to the first element in the span.
370370

@@ -494,7 +494,7 @@ constexpr reference operator[](size_type offset) const;
494494
*offset*\
495495
Zero-based element in the span to access.
496496

497-
### Return Value
497+
### Return value
498498

499499
A reference to the element at position *offset*. If the position is invalid, the behavior is undefined.
500500

@@ -531,7 +531,7 @@ constexpr span& operator=(const span& other) noexcept = default;
531531
*other*\
532532
The span to assign to this one.
533533

534-
### Return Value
534+
### Return value
535535

536536
`*this`
537537

@@ -610,7 +610,7 @@ Get a reverse iterator pointing to the last element of this span.
610610
constexpr reverse_iterator rbegin() const noexcept;
611611
```
612612

613-
### Return Value
613+
### Return value
614614

615615
An iterator pointing to the beginning of the reversed span.
616616

@@ -683,7 +683,7 @@ Get a random-access iterator that points just beyond the end of the reversed spa
683683
constexpr reverse_iterator rend() const noexcept;
684684
```
685685

686-
### Return Value
686+
### Return value
687687

688688
A reverse iterator to the placeholder following the last element in the reversed span; that is, the placeholder before the first element in the unreversed span.
689689

@@ -781,7 +781,7 @@ Get the size of the elements in the span in bytes.
781781
constexpr size_type size_bytes() const noexcept;
782782
```
783783

784-
### Return Value
784+
### Return value
785785

786786
The number of bytes that all of the elements in the span occupy; that is, `sizeof(element_type)` multiplied by the number of elements in the span.
787787

@@ -958,7 +958,7 @@ The number of elements to put in the subspan. If `count` is `dynamic_extent` (th
958958
*offset*\
959959
The location in this span to start the subspan.
960960
961-
### Return Value
961+
### Return value
962962
963963
A span starting at `offset` in this span. Contains `count` elements.
964964

0 commit comments

Comments
 (0)