hipCUB
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Uninitialized< T > Struct Template Reference

A storage-backing wrapper that allows types with non-trivial constructors to be aliased in unions. More...

#include <util_type.hpp>

Public Types

typedef UnitWord< T >::DeviceWord DeviceWord
 Biggest memory-access word that T is a whole multiple of and is not larger than the alignment of T.
 

Public Member Functions

HIPCUB_HOST_DEVICE __forceinline__ T & Alias ()
 Alias.
 

Public Attributes

DeviceWord storage [WORDS]
 Backing storage.
 

Static Public Attributes

static constexpr std::size_t DATA_SIZE = sizeof(T)
 
static constexpr std::size_t WORD_SIZE = sizeof(DeviceWord)
 
static constexpr std::size_t WORDS = DATA_SIZE / WORD_SIZE
 

Detailed Description

template<typename T>
struct Uninitialized< T >

A storage-backing wrapper that allows types with non-trivial constructors to be aliased in unions.


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