MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::zero_fill_is_value_init< T > Struct Template Reference

Whether all-zero bytes are T{}: arithmetic types, enumerations, object and function pointers, std::nullptr_t, and std::complex of a floating-point type. More...

#include <zero_fill.hpp>

Inheritance diagram for mtl::zero_fill_is_value_init< T >:

Detailed Description

template<typename T>
struct mtl::zero_fill_is_value_init< T >

Whether all-zero bytes are T{}: arithmetic types, enumerations, object and function pointers, std::nullptr_t, and std::complex of a floating-point type.

Specialize it as std::true_type for a type of your own whose T{} is zero bytes, to keep it in device memory.


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