Carson Radtke
d988e0e19b
introduce gsl::swap for swapping gsl::not_null
...
fixes: https://github.com/microsoft/GSL/issues/1129
* create gsl::swap<T>(T&, T&) which wraps std::swap
* specialize gsl::swap<T>(gsl::not_null<T>&, gsl::not_null<T>&)
* add tests
2024-10-17 06:56:28 -05:00
Werner Henze
b39e7e4b09
Add documentation for to_integer(byte) ( #1144 )
...
Co-authored-by: Werner Henze <w.henze@avm.de>
2024-02-26 13:23:45 -08:00
Bruce Mitchener
caae4dd0f8
Fix some typos. ( #1146 )
2024-02-21 15:06:29 -08:00
Werner Henze
9695da9b38
fix and optimize documentation ( #1131 )
...
- Add anchor for `finally` in `headers.md` so that the link in `README.md` can work
- In `README.md` add code formatting for the character types of the `zstring` and `string_span` types
- In `README.md` change code formatting to links for GSL types
- Vertical alignment
2023-09-05 16:08:36 -07:00
Dmitry Kobets
3549e31ba4
Deprecate <gsl/string_span>
and replace with <gsl/zstring>
( #1125 )
...
With `string_span` having been deprecated (https://github.com/microsoft/GSL/pull/931 , https://github.com/microsoft/GSL/pull/945 ) and removed (https://github.com/microsoft/GSL/pull/1074 ), the header `<gsl/string_span>` now only contains the definitions for the `zstring` family. Update the name accordingly from `<gsl/string_span>` to `<gsl/zstring>`. The old header is now deprecated and should no longer be used and will be removed in some future release.
2023-06-28 10:48:23 -07:00
dmitrykobets-msft
78eb6ca145
Document span_ext ( #1098 )
...
`<gsl/span>` is intended to mirror `<span>` in the STL. `<span_ext>` provides convenience features that aren't part of `<span>`.
Address #1095
2023-02-23 10:22:02 -08:00
Werner Henze
7f7108a076
Better links to CoreGuidelines ( #1094 )
...
The `#i13-do-not-pass-an-array-as-a-single-pointer` anchor seems to be auto generated based on the title of the section. The `#Ri-array` anchor is explicitely written in the source, so this should be a better link.
2023-02-21 17:11:30 -08:00
Werner Henze
7a297d4283
Extend docs and tests for span ctor ( #1096 )
2023-02-21 15:46:40 -08:00
Werner Henze
743939744c
Documentation ( #1086 )
...
Add documentation for #1071 .
2023-02-17 10:38:34 -08:00