MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Hpp / generateStandardArray

Function generateStandardArray

generator/VulkanHppGenerator.cpp:14768–14778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14766 }
14767
14768 std::string generateStandardArray( std::string const & type, std::vector<std::string> const & sizes )
14769 {
14770 assert( !sizes.empty() );
14771
14772 std::string arrayString = "std::array<" + type + "," + sizes.back() + ">";
14773 for ( auto it = std::prev( sizes.rend() ); it != sizes.rbegin(); --it )
14774 {
14775 arrayString = "std::array<" + arrayString + "," + *it + ">";
14776 }
14777 return arrayString;
14778 }
14779
14780 bool isUpperCase( std::string const & name )
14781 {

Calls

no outgoing calls

Tested by

no test coverage detected