Skip to content

Commit 6fbe6bf

Browse files
committed
apply some feedback after offline review w/ @GabrielDosReis
1 parent 15f45f9 commit 6fbe6bf

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/dyn_array.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
# `gsl::dyn_array<T, Allocator>`
44

5-
### Revision History
6-
7-
| Date | Author | Description |
8-
| ---- | ------ | ----------- |
9-
| Jan 16, 2025 | Carson Radtke (Microsoft) | Initial draft. |
10-
115
`gsl::dyn_array` is a dynamic array that is intended to be a replacement for slinging
126
around raw pointers and sizes. Notably, it _owns_ all of its elements. It should replace
137
the following idioms:
@@ -49,6 +43,7 @@ constexpr dyn_array(size_t n, const T& arg, const Allocator & alloc = Allocator(
4943
* Construct a `dyn_array` with elements from the range `[first, last)`:
5044
```c++
5145
template <typename InputIt>
46+
requires (std::input_iterator<InputIt>)
5247
constexpr dyn_array(InputIt first, InputIt last, const Allocator & alloc = Allocator());
5348
```
5449
@@ -59,7 +54,8 @@ constexpr dyn_array(std::initializer_list<T>, const Allocator & alloc = Allocato
5954

6055
* Construct a `dyn_array` with elements from the range `R`:
6156
```c++
62-
template <container-compatible-range<T> R>
57+
template <typename R>
58+
requires (std::input_range<R>)
6359
constexpr dyn_array(R&&, const Allocator & alloc = Allocator());
6460
```
6561

0 commit comments

Comments
 (0)