XRTraits C++ OpenXR Utilities
Namespaces | Functions | Variables
APITraits.h File Reference

C++ type traits related to OpenXR, and some other compile-time functionality. More...

#include "xrtraits/traits/APITraitsImpl.h"
#include "xrtraits/Common.h"
#include <openxr/openxr.h>
#include <openxr/openxr_reflection.h>
#include <type_traits>
#include <utility>
Include dependency graph for APITraits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 xrtraits
 Main namespace for these C++ OpenXR utilities.
 
 xrtraits::traits
 C++11/14/17 "type traits" for manipulating and reasoning about types at compile-time.
 

Functions

constexpr const char * xrtraits::traits::to_string (XrStructureType t)
 
constexpr const char * xrtraits::traits::getTypeName (XrStructureType t)
 

Variables

template<typename T >
constexpr bool xrtraits::traits::is_xr_tagged_type_v
 
template<typename T >
constexpr bool xrtraits::traits::has_xr_type_tag_v
 
template<typename T >
constexpr XrStructureType xrtraits::traits::xr_type_tag_v
 
template<typename T >
constexpr bool xrtraits::traits::has_const_next_pointer_v
 
template<typename SourceType , typename TargetType >
constexpr bool xrtraits::traits::same_constness
 Do SourceType and TargetType have the same const-qualifications? More...
 

Detailed Description

C++ type traits related to OpenXR, and some other compile-time functionality.

Includes a generated header that defines most of these based on the registry.

Author
Ryan Pavlik ryan..nosp@m.pavl.nosp@m.ik@co.nosp@m.llab.nosp@m.ora.c.nosp@m.om