array< T, 0 > Struct Template Reference#
Public Types |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
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_type & | operator[] (index_t i) const |
| CK_TILE_HOST_DEVICE constexpr value_type & | operator() (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 >
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
-
T The 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>
|
inlineconstexpr |
Member Function Documentation
◆ at()
|
inlineconstexpr |
◆ get()
|
inlineconstexpr |
◆ get_as()
|
inlineconstexpr |
◆ is_static()
template<typename T>
|
inlinestaticconstexpr |
◆ operator()()
|
inlineconstexpr |
◆ operator[]()
|
inlineconstexpr |
◆ set_as()
|
inlineconstexpr |
◆ size()
template<typename T>
|
inlinestaticconstexpr |
Member Data Documentation
◆ data
| value_type ck_tile::array< T, N_ >::data[N] |
◆ N
|
staticconstexpr |
The documentation for this struct was generated from the following file: