This example shows how to use doTwoCall() when a function requires no additional arguments.
#include <iostream>
int main()
{
auto apiLayers =
doTwoCall<XrApiLayerProperties>(xrEnumerateApiLayerProperties);
std::cout << "Enumerated layers:\n";
for (const auto& prop : apiLayers) {
std::cout << prop.layerName << " - " << prop.description
<< std::endl;
}
return 0;
}