Merge pull request #932 from asuessenbach/asTuple

Add missing ResultValue<std::vector<UniqueHandle<Type, Dispatch>>>::asTuple()
This commit is contained in:
Andreas Süßenbach 2021-04-13 08:25:24 +02:00 committed by GitHub
commit 36635b899c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -15908,13 +15908,22 @@ namespace std
, value( std::move( v ) ) , value( std::move( v ) )
{} {}
std::tuple<Result, std::vector<UniqueHandle<Type, Dispatch>>> asTuple()
{
return std::make_tuple( result, std::move( value ) );
}
Result result; Result result;
std::vector<UniqueHandle<Type, Dispatch>> value; std::vector<UniqueHandle<Type, Dispatch>> value;
# if !defined(VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST)
VULKAN_HPP_DEPRECATED(
"Implicit-cast operators on vk::ResultValue are deprecated. Explicitly access the value as member of ResultValue." )
operator std::tuple<Result &, std::vector<UniqueHandle<Type, Dispatch>> &>() VULKAN_HPP_NOEXCEPT operator std::tuple<Result &, std::vector<UniqueHandle<Type, Dispatch>> &>() VULKAN_HPP_NOEXCEPT
{ {
return std::tuple<Result &, std::vector<UniqueHandle<Type, Dispatch>> &>( result, value ); return std::tuple<Result &, std::vector<UniqueHandle<Type, Dispatch>> &>( result, value );
} }
# endif
}; };
#endif #endif

View File

@ -17677,13 +17677,22 @@ namespace VULKAN_HPP_NAMESPACE
, value( std::move( v ) ) , value( std::move( v ) )
{} {}
std::tuple<Result, std::vector<UniqueHandle<Type, Dispatch>>> asTuple()
{
return std::make_tuple( result, std::move( value ) );
}
Result result; Result result;
std::vector<UniqueHandle<Type, Dispatch>> value; std::vector<UniqueHandle<Type, Dispatch>> value;
# if !defined( VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST )
VULKAN_HPP_DEPRECATED(
"Implicit-cast operators on vk::ResultValue are deprecated. Explicitly access the value as member of ResultValue." )
operator std::tuple<Result &, std::vector<UniqueHandle<Type, Dispatch>> &>() VULKAN_HPP_NOEXCEPT operator std::tuple<Result &, std::vector<UniqueHandle<Type, Dispatch>> &>() VULKAN_HPP_NOEXCEPT
{ {
return std::tuple<Result &, std::vector<UniqueHandle<Type, Dispatch>> &>( result, value ); return std::tuple<Result &, std::vector<UniqueHandle<Type, Dispatch>> &>( result, value );
} }
# endif
}; };
#endif #endif