Skip to content

KeyValPair

#include <custom_types.hh>
template<typename KeyT, typename ValT>
struct KeyValPair

Defined 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.

  • KeyT The underlying type of the key used for lookup.

  • ValT The underlying type of the value being stored.

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
Return Name Description
KeyT key
ValT val

KeyT key

Defined in src/lib/ncarray/custom_types.hh:81


ValT val

Defined in src/lib/ncarray/custom_types.hh:82

Return Name Description
KeyValPair Defaulted constructor.
NCA_HD KeyValPair inline
NCA_HD bool operator== const inline
NCA_HD bool operator!= const inline

KeyValPair() = default

Defined in src/lib/ncarray/custom_types.hh:84

Defaulted constructor.


inline

inline NCA_HD KeyValPair(KeyT _key, ValT _val)

Defined in src/lib/ncarray/custom_types.hh:85


const inline

inline NCA_HD bool operator==(const KeyValPair & other) const

Defined in src/lib/ncarray/custom_types.hh:90


const inline

inline NCA_HD bool operator!=(const KeyValPair & other) const

Defined in src/lib/ncarray/custom_types.hh:94