mirror of
https://github.com/microsoft/GSL.git
synced 2025-04-23 17:45:31 -04:00
Compare commits
No commits in common. "5f0ff1d57bf248c5966433f55615becb8e65647c" and "8eb3205aabb986ff26757cd54667e293f5094316" have entirely different histories.
5f0ff1d57b
...
8eb3205aab
@ -50,7 +50,7 @@ dyn_array | &
|
|||||||
[**4. Utilities**][cg-utilities] | |
|
[**4. Utilities**][cg-utilities] | |
|
||||||
move_owner | ☐ | A helper function that moves one `owner` to the other
|
move_owner | ☐ | A helper function that moves one `owner` to the other
|
||||||
[byte](docs/headers.md#user-content-H-byte-byte) | ☑ | Either an alias to `std::byte` or a byte type
|
[byte](docs/headers.md#user-content-H-byte-byte) | ☑ | Either an alias to `std::byte` or a byte type
|
||||||
[final_action](docs/headers.md#user-content-H-util-final_action) | ☑ | A RAII style class that invokes a non-throwing functor on its destruction
|
[final_action](docs/headers.md#user-content-H-util-final_action) | ☑ | A RAII style class that invokes a functor on its destruction
|
||||||
[finally](docs/headers.md#user-content-H-util-finally) | ☑ | A helper function instantiating [final_action](docs/headers.md#user-content-H-util-final_action)
|
[finally](docs/headers.md#user-content-H-util-finally) | ☑ | A helper function instantiating [final_action](docs/headers.md#user-content-H-util-final_action)
|
||||||
[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")]]`
|
[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")]]`
|
||||||
[[implicit]] | ☐ | A "marker" to put on single-argument constructors to explicitly make them non-explicit
|
[[implicit]] | ☐ | A "marker" to put on single-argument constructors to explicitly make them non-explicit
|
||||||
|
@ -69,7 +69,7 @@ namespace gsl
|
|||||||
// index type for all container indexes/subscripts/sizes
|
// index type for all container indexes/subscripts/sizes
|
||||||
using index = std::ptrdiff_t;
|
using index = std::ptrdiff_t;
|
||||||
|
|
||||||
// final_action allows you to ensure non-throwing code is executed at the end of a scope.
|
// final_action allows you to ensure something gets run at the end of a scope
|
||||||
template <class F>
|
template <class F>
|
||||||
class final_action
|
class final_action
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user