Add type alias for underlying type of vk::UniqueHandle (#326)

* Add type alias for underlying type of vk::UniqueHandle

* Type alias to UniqueHandle

* Unique Handle Type alias moved
This commit is contained in:
Jarrett Johnson 2019-05-09 03:22:10 -04:00 committed by Andreas Süßenbach
parent 39d204839d
commit 61e92d4842
2 changed files with 6 additions and 0 deletions

View File

@ -4602,6 +4602,9 @@ int main( int argc, char **argv )
private:
using Deleter = typename UniqueHandleTraits<Type,Dispatch>::deleter;
public:
using element_type = Type;
explicit UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() )
: Deleter( deleter)
, m_value( value )

View File

@ -509,6 +509,9 @@ namespace VULKAN_HPP_NAMESPACE
private:
using Deleter = typename UniqueHandleTraits<Type,Dispatch>::deleter;
public:
using element_type = Type;
explicit UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() )
: Deleter( deleter)
, m_value( value )