HandmadeHero/project/platform/generics.hpp

15 lines
204 B
C++
Raw Normal View History

2023-09-17 18:20:11 -07:00
#pragma once
template< class Type >
void swap( Type& a, Type& b )
{
Type
temp = a;
a = b;
b = temp;
}
#define Zero( type ) tmpl_zero<type>()
template< class Type >
constexpr Type tmpl_zero();