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
- 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
[owner](docs/headers.md#user-content-H-pointers-owner) | ☑ | An alias for a raw pointer
29
-
[not_null](docs/headers.md#user-content-H-pointers-not_null) | ☑ | Restricts a pointer / smart pointer to hold non-null values
29
+
[not_null](docs/headers.md#user-content-H-pointers-not_null) | ☑ | Restricts a pointer/smart pointer to hold non-null values
30
30
[span](docs/headers.md#user-content-H-span-span) | ☑ | A view over a contiguous sequence of memory. Based on the standardized version of `std::span`, however `gsl::span` enforces bounds checking.
31
31
span_p | ☐ | Spans a range starting from a pointer to the first place for which the predicate is true
32
-
[basic_zstring](docs/headers.md#user-content-H-zstring) | ☑ | A pointer to a C-string (zero-terminated array) with a templated char type
33
-
[zstring](docs/headers.md#user-content-H-zstring) | ☑ | An alias to `basic_zstring` with dynamic extent and a char type of char
34
-
[czstring](docs/headers.md#user-content-H-zstring) | ☑ | An alias to `basic_zstring` with dynamic extent and a char type of const char
35
-
[wzstring](docs/headers.md#user-content-H-zstring) | ☑ | An alias to `basic_zstring` with dynamic extent and a char type of wchar_t
36
-
[cwzstring](docs/headers.md#user-content-H-zstring) | ☑ | An alias to `basic_zstring` with dynamic extent and a char type of const wchar_t
37
-
[u16zstring](docs/headers.md#user-content-H-zstring) | ☑ | An alias to `basic_zstring` with dynamic extent and a char type of char16_t
38
-
[cu16zstring](docs/headers.md#user-content-H-zstring) | ☑ | An alias to `basic_zstring` with dynamic extent and a char type of const char16_t
39
-
[u32zstring](docs/headers.md#user-content-H-zstring) | ☑ | An alias to `basic_zstring` with dynamic extent and a char type of char32_t
40
-
[cu32zstring](docs/headers.md#user-content-H-zstring) | ☑ | An alias to `basic_zstring` with dynamic extent and a char type of const char32_t
32
+
[basic_zstring](docs/headers.md#user-content-H-zstring)| ☑ | A pointer to a C-string (zero-terminated array) with a templated char type
33
+
[zstring](docs/headers.md#user-content-H-zstring)| ☑ | An alias to `basic_zstring` with dynamic extent and a char type of `char`
34
+
[czstring](docs/headers.md#user-content-H-zstring)| ☑ | An alias to `basic_zstring` with dynamic extent and a char type of `const char`
35
+
[wzstring](docs/headers.md#user-content-H-zstring)| ☑ | An alias to `basic_zstring` with dynamic extent and a char type of `wchar_t`
36
+
[cwzstring](docs/headers.md#user-content-H-zstring)| ☑ | An alias to `basic_zstring` with dynamic extent and a char type of `const wchar_t`
37
+
[u16zstring](docs/headers.md#user-content-H-zstring)| ☑ | An alias to `basic_zstring` with dynamic extent and a char type of `char16_t`
38
+
[cu16zstring](docs/headers.md#user-content-H-zstring)| ☑ | An alias to `basic_zstring` with dynamic extent and a char type of `const char16_t`
39
+
[u32zstring](docs/headers.md#user-content-H-zstring)| ☑ | An alias to `basic_zstring` with dynamic extent and a char type of `char32_t`
40
+
[cu32zstring](docs/headers.md#user-content-H-zstring)| ☑ | An alias to `basic_zstring` with dynamic extent and a char type of `const char32_t`
41
41
[**2. Owners**][cg-owners] | |
42
42
[unique_ptr](docs/headers.md#user-content-H-pointers-unique_ptr) | ☑ | An alias to `std::unique_ptr`
43
43
[shared_ptr](docs/headers.md#user-content-H-pointers-shared_ptr) | ☑ | An alias to `std::shared_ptr`
@@ -50,31 +50,31 @@ dyn_array | &
50
50
move_owner | ☐ | A helper function that moves one `owner` to the other
51
51
[byte](docs/headers.md#user-content-H-byte-byte) | ☑ | Either an alias to `std::byte` or a byte type
52
52
[final_action](docs/headers.md#user-content-H-util-final_action) | ☑ | A RAII style class that invokes a functor on its destruction
53
-
[finally](docs/headers.md#user-content-H-util-finally) | ☑ | A helper function instantiating `final_action`
53
+
[finally](docs/headers.md#user-content-H-util-finally) | ☑ | A helper function instantiating [final_action](docs/headers.md#user-content-H-util-final_action)
54
54
[GSL_SUPPRESS](docs/headers.md#user-content-H-assert-gsl_suppress) | ☑ | A macro that takes an argument and turns it into `[[gsl::suppress(x)]]` or `[[gsl::suppress("x")]]`
55
55
[[implicit]] | ☐ | A "marker" to put on single-argument constructors to explicitly make them non-explicit
56
56
[index](docs/headers.md#user-content-H-util-index) | ☑ | A type to use for all container and array indexing (currently an alias for `std::ptrdiff_t`)
57
57
joining_thread | ☐ | A RAII style version of `std::thread` that joins
58
-
[narrow](docs/headers.md#user-content-H-narrow-narrow) | ☑ | A checked version of `narrow_cast`; it can throw `narrowing_error`
58
+
[narrow](docs/headers.md#user-content-H-narrow-narrow) | ☑ | A checked version of `narrow_cast`; it can throw [narrowing_error](docs/headers.md#user-content-H-narrow-narrowing_error)
59
59
[narrow_cast](docs/headers.md#user-content-H-util-narrow_cast) | ☑ | A narrowing cast for values and a synonym for `static_cast`
60
-
[narrowing_error](docs/headers.md#user-content-H-narrow-narrowing_error) | ☑ | A custom exception type thrown by `narrow()`
60
+
[narrowing_error](docs/headers.md#user-content-H-narrow-narrowing_error) | ☑ | A custom exception type thrown by [narrow](docs/headers.md#user-content-H-narrow-narrow)
61
61
[**5. Concepts**][cg-concepts] | ☐ |
62
62
63
63
## The following features do not exist in or have been removed from the C++ Core Guidelines:
[strict_not_null](docs/headers.md#user-content-H-pointers-strict_not_null) | ☑ | A stricter version of `not_null` with explicit constructors
66
+
[strict_not_null](docs/headers.md#user-content-H-pointers-strict_not_null) | ☑ | A stricter version of [not_null](docs/headers.md#user-content-H-pointers-not_null) with explicit constructors
strided_span | ☐ | Deprecated. Support for this type has been discontinued.
69
69
basic_string_span | ☐ | Deprecated. Like `span` but for strings with a templated char type
70
-
string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of char
71
-
cstring_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of const char
72
-
wstring_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of wchar_t
73
-
cwstring_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of const wchar_t
74
-
u16string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of char16_t
75
-
cu16string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of const char16_t
76
-
u32string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of char32_t
77
-
cu32string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of const char32_t
70
+
string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of `char`
71
+
cstring_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of `const char`
72
+
wstring_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of `wchar_t`
73
+
cwstring_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of `const wchar_t`
74
+
u16string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of `char16_t`
75
+
cu16string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of `const char16_t`
76
+
u32string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of `char32_t`
77
+
cu32string_span | ☐ | Deprecated. An alias to `basic_string_span` with a char type of `const char32_t`
78
78
79
79
This is based on [CppCoreGuidelines semi-specification](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#gsl-guidelines-support-library).
0 commit comments