template<typename T>
struct psystem::default_close_handle< T >
A simple functor to close handles (for use with RAII handle containers).
This class is marked final
because the interfaces that use it make optimizations that become impossible if the class can be derived. For example, an unique_handle
may specify this as a deleter in the template parameter, which would case the class to not store a deleter at runtime, but if default_close_handle were derivable, the caller could (rightfully) pass an instance of the derived class, which would be ignored.
- Template Parameters
-
- See also
- psystem::shared_handle
-
psystem::unique_handle
- Todo:
- Examine the return value from CloseHandle().
- Author
- Matt Bisson
- Date
- 5 August, 2014
- Since
- PSystem 2.0
- Version
- PSystem 2.0