half > Struct Reference

half > Struct Reference#

half: std::hash< half_float::half > Struct Reference
std::hash< half_float::half > Struct Reference

Hash function for half-precision floats. More...

#include <half.hpp>

Public Types

typedef half_float::half argument_type
 Type of function argument.
 
typedef size_t result_type
 Function return type.
 

Public Member Functions

result_type operator() (argument_type arg) const
 Compute hash function. More...
 

Detailed Description

Hash function for half-precision floats.

This is only defined if C++11 std::hash is supported and enabled.

Definition at line 3041 of file half.hpp.

Member Function Documentation

◆ operator()()

result_type std::hash< half_float::half >::operator() ( argument_type  arg) const
inline

Compute hash function.

Parameters
arghalf to hash
Returns
hash value

Definition at line 3052 of file half.hpp.


The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-half/checkouts/latest/include/half.hpp