C++ headers for std::hash, operator==, operator!= (#833)

* C++ headers for std::hash, operator==, operator!=

* std::hash specializations for some HSA types
Αυτή η υποβολή περιλαμβάνεται σε:
Jonathan R. Madsen
2024-05-02 01:50:28 -05:00
υποβλήθηκε από GitHub
γονέας d15cf17635
υποβολή bf75579566
6 αρχεία άλλαξαν με 199 προσθήκες και 47 διαγραφές
+2 -18
Προβολή Αρχείου
@@ -24,21 +24,5 @@
#include <rocprofiler-sdk/agent.h>
#include <rocprofiler-sdk/fwd.h>
namespace std
{
template <typename Tp>
struct hash;
template <>
struct hash<rocprofiler_agent_id_t>
{
size_t operator()(rocprofiler_agent_id_t id) const { return id.handle; }
};
} // namespace std
inline bool
operator==(rocprofiler_agent_id_t lhs, rocprofiler_agent_id_t rhs)
{
return (lhs.handle == rhs.handle);
}
#include <rocprofiler-sdk/cxx/hash.hpp>
#include <rocprofiler-sdk/cxx/operators.hpp>