From a08954c4709ab62dd5c5517bc14166e10e851f3a Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Mon, 11 Mar 2019 07:25:31 -0700 Subject: [PATCH] Add structurechain tuple-based getter (#292) --- VulkanHppGenerator.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index f4bb435..58bac3d 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -4549,6 +4549,15 @@ int main( int argc, char **argv ) template ClassType& get() { return static_cast(*this);} + template + std::tuple get() + { + return std::tuple_cat( + std::make_tuple(get(),get()), + std::make_tuple(get()...) + ); + } + private: template void link()