ezEngine Release 26.3
Loading...
Searching...
No Matches
ezTraitInt< v > Struct Template Reference

Compile-time type classification system for optimizing container operations. More...

#include <TypeTraits.h>

Inheritance diagram for ezTraitInt< v >:

Static Public Attributes

static constexpr int value = v
 

Detailed Description

template<int v>
struct ezTraitInt< v >

Compile-time type classification system for optimizing container operations.

The ezEngine type trait system classifies types into three categories to enable different optimization strategies for containers and memory operations:

  • Class (0): Standard types requiring constructor/destructor calls and careful copying
  • POD (1): Plain Old Data types that can be memcpy'd and don't need destructor calls
  • MemRelocatable (2): Types that can be moved with memcpy but may need destructor calls

This classification allows containers to choose the most efficient implementation for construction, destruction, copying, and moving operations.


The documentation for this struct was generated from the following file: