|
|
|
|
|
|
|
|
[![License](https://img.shields.io/badge/license-GPLv3-yellow.svg)](LICENSE) |
|
|
[![License](https://img.shields.io/badge/license-GPLv3-yellow.svg)](LICENSE) |
|
|
![C++](https://img.shields.io/badge/c++-14-green.svg) |
|
|
![C++](https://img.shields.io/badge/c++-14-green.svg) |
|
|
|
|
|
|
|
|
Implementation of `scope_guard` and `unique_resource` as proposed in [**N3949**][1]. |
|
|
|
|
|
|
|
|
Implementation of `scope_guard` and `unique_resource` as proposed in [**P0052**][2] (former [N3949][1]). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Compatibility |
|
|
## Compatibility |
|
|
|
|
|
|
|
|
This implementation conforms to [N3949][1], except: |
|
|
|
|
|
|
|
|
This implementation conforms to [P0052][2], except: |
|
|
|
|
|
|
|
|
###### Namespace |
|
|
###### Namespace |
|
|
Another namespace is used instead of `std`. |
|
|
Another namespace is used instead of `std`. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Documentation |
|
|
## Documentation |
|
|
|
|
|
|
|
|
|
|
|
- [*P0052R3 - Generic Scope Guard and RAII Wrapper for the Standard Library*][2] (P. Sommerlad, A. L. Sandoval, E. Niebler, D. Krügler) |
|
|
- [*N3949 - Scoped Resource - Generic RAII Wrapper for the Standard Library*][1] (P. Sommerlad, A. L. Sandoval) |
|
|
- [*N3949 - Scoped Resource - Generic RAII Wrapper for the Standard Library*][1] (P. Sommerlad, A. L. Sandoval) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[1]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3949.pdf |
|
|
[1]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3949.pdf |
|
|
|
|
|
[2]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0052r3.pdf |