.. _program_listing_file_include_flamegpu_detail_StaticAssert.h: Program Listing for File StaticAssert.h ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``include/flamegpu/detail/StaticAssert.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef INCLUDE_FLAMEGPU_DETAIL_STATICASSERT_H_ #define INCLUDE_FLAMEGPU_DETAIL_STATICASSERT_H_ #include namespace flamegpu { namespace detail { namespace StaticAssert { template struct integral_constant { static constexpr _Ty value = _Val; typedef _Ty value_type; typedef integral_constant<_Ty, _Val> type; constexpr operator value_type() const noexcept { return (value); // return stored value } constexpr value_type operator()() const noexcept { return (value); // return stored value } }; typedef integral_constant true_type; typedef integral_constant false_type; template struct _Cat_base : integral_constant { }; template struct is_same : false_type { }; template struct is_same<_Ty1, _Ty1> : true_type { }; template struct _Is_RealType : _Cat_base::value || is_same<_Ty, double>::value> { }; template struct _Is_IntType : _Cat_base::value || is_same<_Ty, char>::value || is_same<_Ty, signed char>::value || is_same<_Ty, uint16_t>::value || is_same<_Ty, int16_t>::value || is_same<_Ty, uint32_t>::value || is_same<_Ty, int32_t>::value || is_same<_Ty, uint64_t>::value || is_same<_Ty, int64_t>::value> { }; } // namespace StaticAssert } // namespace detail } // namespace flamegpu #endif // INCLUDE_FLAMEGPU_DETAIL_STATICASSERT_H_