half  1.12
IEEE 754-based half-precision floating point library
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
hash< half_float::half > Struct Template Reference

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

Public Types

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

Public Member Functions

std::size_t operator() (half_float::half arg) const
 Compute hash function.
 

Detailed Description

template<>
struct std::hash< half_float::half >

Hash function for half-precision floats.

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

See also: Documentation for std::hash

Member Function Documentation

std::size_t operator() ( half_float::half  arg) const

Compute hash function.

Parameters
arghalf to hash
Returns
hash value

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