DHART
Loading...
Searching...
No Matches
std::hash< std::array< float, 3 > > Struct Reference

#include <boost_graph.h>

Public Member Functions

std::size_t operator() (const std::array< float, 3 > &k) const
 Template specialization to hash an array of floats. More...
 

Detailed Description

Definition at line 38 of file boost_graph.h.

Member Function Documentation

◆ operator()()

std::size_t std::hash< std::array< float, 3 > >::operator() ( const std::array< float, 3 > &  k) const
inline

Template specialization to hash an array of floats.

Parameters
kReference to an array of coordinates (x, y, z)
Returns
Hash for x,y, and z.
// Create coordinates, (x, y, z)
std::array<float, 3> arr = { 123.0, 456.1, 789.2 };
// Using the template specialization for std::hash (which takes a std::array<float,
// 3>), we retrieve a seed
std::size_t arr_hash = std::hash<std::array<float, 3>>(arr);

Definition at line 53 of file boost_graph.h.

References std::array_hash_combine_impl().

+ Here is the call graph for this function:

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