cuda-kat
CUDA kernel author's tools
Public Types | Public Member Functions | Public Attributes | List of all members
kat::array< T, NumElements > Struct Template Reference

A standard container for storing a fixed size sequence of elements, based on std::array - but fully GPU device-side enabled. More...

#include <array.hpp>

Public Types

typedef T value_type
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef value_type * iterator
 
typedef const value_type * const_iterator
 
typedef size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef std::reverse_iterator< iterator > reverse_iterator
 
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
 
typedef array_traits< T, NumElements > array_traits_type
 

Public Member Functions

KAT_FHD CONSTEXPR_SINCE_CPP_14 void fill (const value_type &u)
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 void swap (array &other) noexcept(noexcept(std::swap(std::declval< T &>(), std::declval< T &>())))
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 iterator begin () noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 const_iterator begin () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 iterator end () noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 const_iterator end () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 reverse_iterator rbegin () noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 const_reverse_iterator rbegin () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 reverse_iterator rend () noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 const_reverse_iterator rend () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 const_iterator cbegin () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 const_iterator cend () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 const_reverse_iterator crbegin () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 const_reverse_iterator crend () const noexcept
 
KAT_FHD constexpr size_type size () const noexcept
 
KAT_FHD constexpr size_type max_size () const noexcept
 
KAT_FHD constexpr bool empty () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 reference operator[] (size_type n) noexcept
 
KAT_FHD constexpr const_reference operator[] (size_type n) const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_17 reference at (size_type n) noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_17 const_reference at (size_type n) const
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 reference front () noexcept
 
KAT_FHD constexpr const_reference front () const noexcept
 
KAT_FHD reference back () noexcept
 
KAT_FHD constexpr const_reference back () const noexcept
 
KAT_FHD CONSTEXPR_SINCE_CPP_14 pointer data () noexcept
 
KAT_FHD constexpr const_pointer data () const noexcept
 

Public Attributes

array_traits_type::type elements
 

Detailed Description

template<typename T, size_t NumElements>
struct kat::array< T, NumElements >

A standard container for storing a fixed size sequence of elements, based on std::array - but fully GPU device-side enabled.

Template Parameters
TType of individual elements
NumElemementsNumber of elements in array.

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