hash< pair< A, B > > Struct Template Reference

Enables hashing of std::pair. More...

#include <RobotComponents/components/MotionPlanning/util/HashingUtil.h>

Public Types

using argument_type = pair< A, B >
 the hash operator's argument type. More...
 
using result_type = std::size_t
 the hash operator's result type More...
 

Public Member Functions

result_type operator() (argument_type const &arg) const
 Hashes a pair. More...
 

Detailed Description

template<class A, class B>
struct std::hash< pair< A, B > >

Enables hashing of std::pair.

Definition at line 167 of file HashingUtil.h.

Member Typedef Documentation

◆ argument_type

using argument_type = pair<A, B>

the hash operator's argument type.

Definition at line 172 of file HashingUtil.h.

◆ result_type

using result_type = std::size_t

the hash operator's result type

Definition at line 176 of file HashingUtil.h.

Member Function Documentation

◆ operator()()

result_type operator() ( argument_type const &  arg) const
inline

Hashes a pair.

Parameters
thepair to hash
Returns
The pair's hash

Definition at line 183 of file HashingUtil.h.

+ Here is the call graph for this function:

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