array< T, 0 > Struct Template Reference

array&lt; T, 0 &gt; Struct Template Reference#

Composable Kernel: ck_tile::array< T, 0 > Struct Template Reference

Specialization of array container for zero elements. More...

#include <array.hpp>

Public Types

using value_type = T

Public Member Functions

CK_TILE_HOST_DEVICE constexpr array ()
CK_TILE_HOST_DEVICE constexpr auto & get ()
CK_TILE_HOST_DEVICE constexpr auto & at (index_t i)
CK_TILE_HOST_DEVICE constexpr const value_typeoperator[] (index_t i) const
CK_TILE_HOST_DEVICE constexpr value_typeoperator() (index_t i)
CK_TILE_HOST_DEVICE constexpr auto & get_as ()
CK_TILE_HOST_DEVICE constexpr void set_as (index_t i, const Tx &x)

Static Public Member Functions

static CK_TILE_HOST_DEVICE constexpr index_t size ()
static CK_TILE_HOST_DEVICE constexpr bool is_static ()

Public Attributes

value_type data [N]

Static Public Attributes

static constexpr index_t N

Detailed Description

template<typename T>
struct ck_tile::array< T, 0 >

Specialization of array container for zero elements.

This is a specialization of the array container template for the case where the number of elements is 0. It provides the same interface as the general array template, but with operations appropriate for an empty array.

Template Parameters
TThe type of elements stored in the array (not used in this specialization but maintained for API consistency).

Member Typedef Documentation

◆ value_type

template<typename T>
using ck_tile::array< T, 0 >::value_type = T

Constructor & Destructor Documentation

◆ array()

template<typename T>
CK_TILE_HOST_DEVICE constexpr ck_tile::array< T, 0 >::array ( )
inlineconstexpr

Member Function Documentation

◆ at()

CK_TILE_HOST_DEVICE constexpr auto & ck_tile::array< T, N_ >::at ( index_t i)
inlineconstexpr

◆ get()

CK_TILE_HOST_DEVICE constexpr auto & ck_tile::array< T, N_ >::get ( )
inlineconstexpr

◆ get_as()

CK_TILE_HOST_DEVICE constexpr auto & ck_tile::array< T, N_ >::get_as ( )
inlineconstexpr

◆ is_static()

template<typename T>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::array< T, 0 >::is_static ( )
inlinestaticconstexpr

◆ operator()()

CK_TILE_HOST_DEVICE constexpr value_type & ck_tile::array< T, N_ >::operator() ( index_t i)
inlineconstexpr

◆ operator[]()

CK_TILE_HOST_DEVICE constexpr const value_type & ck_tile::array< T, N_ >::operator[] ( index_t i) const
inlineconstexpr

◆ set_as()

CK_TILE_HOST_DEVICE constexpr void ck_tile::array< T, N_ >::set_as ( index_t i,
const Tx & x )
inlineconstexpr

◆ size()

template<typename T>
CK_TILE_HOST_DEVICE constexpr index_t ck_tile::array< T, 0 >::size ( )
inlinestaticconstexpr

Member Data Documentation

◆ data

value_type ck_tile::array< T, N_ >::data[N]

◆ N

index_t ck_tile::array< T, N_ >::N
staticconstexpr

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