template void ignore(T const &) VULKAN_HPP_NOEXCEPT {} template struct ResultValue { #ifdef VULKAN_HPP_HAS_NOEXCEPT ResultValue( Result r, T & v ) VULKAN_HPP_NOEXCEPT(VULKAN_HPP_NOEXCEPT(T(v))) #else ResultValue( Result r, T & v ) #endif : result( r ) , value( v ) {} #ifdef VULKAN_HPP_HAS_NOEXCEPT ResultValue( Result r, T && v ) VULKAN_HPP_NOEXCEPT(VULKAN_HPP_NOEXCEPT(T(std::move(v)))) #else ResultValue( Result r, T && v ) #endif : result( r ) , value( std::move( v ) ) {} Result result; T value; operator std::tuple() VULKAN_HPP_NOEXCEPT { return std::tuple(result, value); } }; #if !defined( VULKAN_HPP_NO_SMART_HANDLE ) template struct ResultValue> { #ifdef VULKAN_HPP_HAS_NOEXCEPT ResultValue(Result r, UniqueHandle && v) VULKAN_HPP_NOEXCEPT #else ResultValue(Result r, UniqueHandle && v) #endif : result(r) , value(std::move(v)) {} VULKAN_HPP_DEPRECATED( "asTuple() on an l-value is deprecated, as it implicitly moves the UniqueHandle out of the ResultValue. Use asTuple() on an r-value instead, requiring to explicitly move the UniqueHandle." ) std::tuple> asTuple() & { return std::make_tuple( result, std::move( value ) ); } std::tuple> asTuple() && { return std::make_tuple( result, std::move( value ) ); } Result result; UniqueHandle value; }; template struct ResultValue>> { # ifdef VULKAN_HPP_HAS_NOEXCEPT ResultValue( Result r, std::vector> && v ) VULKAN_HPP_NOEXCEPT # else ResultValue( Result r, std::vector> && v ) # endif : result( r ) , value( std::move( v ) ) {} VULKAN_HPP_DEPRECATED( "asTuple() on an l-value is deprecated, as it implicitly moves the UniqueHandle out of the ResultValue. Use asTuple() on an r-value instead, requiring to explicitly move the UniqueHandle." ) std::tuple>> asTuple() & { return std::make_tuple( result, std::move( value ) ); } std::tuple>> asTuple() && { return std::make_tuple( result, std::move( value ) ); } Result result; std::vector> value; }; #endif template struct ResultValueType { #ifdef VULKAN_HPP_NO_EXCEPTIONS using type = ResultValue; #else using type = T; #endif }; template <> struct ResultValueType { #ifdef VULKAN_HPP_NO_EXCEPTIONS using type = Result; #else using type = void; #endif }; VULKAN_HPP_INLINE typename ResultValueType::type createResultValueType( Result result ) { #ifdef VULKAN_HPP_NO_EXCEPTIONS return result; #else ignore( result ); #endif } template VULKAN_HPP_INLINE typename ResultValueType::type createResultValueType( Result result, T & data ) { #ifdef VULKAN_HPP_NO_EXCEPTIONS return ResultValue( result, data ); #else ignore( result ); return data; #endif } template VULKAN_HPP_INLINE typename ResultValueType::type createResultValueType( Result result, T && data ) { #ifdef VULKAN_HPP_NO_EXCEPTIONS return ResultValue( result, std::move( data ) ); #else ignore( result ); return std::move( data ); #endif }