KeyValPair
KeyValPair
Section titled “KeyValPair”#include <custom_types.hh>template<typename KeyT, typename ValT>struct KeyValPairDefined in src/lib/ncarray/custom_types.hh:80
A small struct for holding a key and value.
Used, for instance, in GPU-based key/value reductions.
Parameters
Section titled “Parameters”-
KeyTThe underlying type of the key used for lookup. -
ValTThe underlying type of the value being stored.
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
key |
variable |
Declared here |
val |
variable |
Declared here |
KeyValPair |
function |
Declared here |
KeyValPair |
function |
Declared here |
operator== |
function |
Declared here |
operator!= |
function |
Declared here |
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
KeyT |
key |
|
ValT |
val |
KeyT keyDefined in src/lib/ncarray/custom_types.hh:81
ValT valDefined in src/lib/ncarray/custom_types.hh:82
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
KeyValPair |
Defaulted constructor. | |
NCA_HD |
KeyValPair inline |
|
NCA_HD bool |
operator== const inline |
|
NCA_HD bool |
operator!= const inline |
KeyValPair
Section titled “KeyValPair”KeyValPair() = defaultDefined in src/lib/ncarray/custom_types.hh:84
Defaulted constructor.
KeyValPair
Section titled “KeyValPair”inline
inline NCA_HD KeyValPair(KeyT _key, ValT _val)Defined in src/lib/ncarray/custom_types.hh:85
operator==
Section titled “operator==”const inline
inline NCA_HD bool operator==(const KeyValPair & other) constDefined in src/lib/ncarray/custom_types.hh:90
operator!=
Section titled “operator!=”const inline
inline NCA_HD bool operator!=(const KeyValPair & other) constDefined in src/lib/ncarray/custom_types.hh:94