/* Copyright (c) 2008-2014, Avian Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. There is NO WARRANTY for this software. See license.txt for details. */ #ifndef AVIAN_UTIL_CPP_H #define AVIAN_UTIL_CPP_H #include "allocator.h" #include "math.h" #include "assert.h" namespace avian { namespace util { template struct NonConst; template struct NonConst { typedef T Type; }; template struct NonConst { typedef T Type; }; template struct ArgumentCount; template struct ArgumentCount { enum { Result = 1 + ArgumentCount::Result }; }; template <> struct ArgumentCount<> { enum { Result = 0 }; }; template void setArrayElements(T*) { } template void setArrayElements(T* arr, T elem, Ts... ts) { *arr = elem; setArrayElements(arr, ts...); } } // namespace util } // namespace avian #endif // AVIAN_UTIL_CPP_H