rocPRIM
Public Types | Public Member Functions | Public Attributes | List of all members
key_value_pair< Key_, Value_ > Struct Template Reference

Convenience struct that allows you to store key-value pairs as a composite entity. More...

#include <key_value_pair.hpp>

Public Types

using Key = Key_
 
using Value = Value_
 
using key_type = Key_
 the key's type
 
using value_type = Value_
 the value's type
 

Public Member Functions

ROCPRIM_HOST_DEVICE key_value_pair (const key_type key, const value_type value)
 Constructs a key-value pair using the supplied values.
 
ROCPRIM_HOST_DEVICE bool operator!= (const key_value_pair &kvb)
 Returns true if the given key-value pair is not equal to this one. More...
 

Public Attributes

key_type key
 the stored key
 
value_type value
 the stored value
 

Detailed Description

template<class Key_, class Value_>
struct key_value_pair< Key_, Value_ >

Convenience struct that allows you to store key-value pairs as a composite entity.

Member Function Documentation

◆ operator!=()

template<class Key_, class Value_>
ROCPRIM_HOST_DEVICE bool key_value_pair< Key_, Value_ >::operator!= ( const key_value_pair< Key_, Value_ > &  kvb)
inline

Returns true if the given key-value pair is not equal to this one.

Otherwise returns false.


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