fixed_point128 1.0.1.0
128 bit integer, fixed point and floating point arithmetic for C++20
Loading...
Searching...
No Matches
std::hash< fp128::float128 > Struct Reference

Hash support, so a float128 can be a key in an unordered container. More...

#include <float128.h>

Public Member Functions

size_t operator() (const fp128::float128 &value) const noexcept

Detailed Description

Hash support, so a float128 can be a key in an unordered container.

The two zeros compare equal and therefore have to hash equal, which the raw encoding would not do: they differ in the sign bit.

Definition at line 8011 of file float128.h.

Member Function Documentation

◆ operator()()

size_t std::hash< fp128::float128 >::operator() ( const fp128::float128 & value) const
inlinenodiscardnoexcept

Definition at line 8013 of file float128.h.


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