piranha  0.10
Public Types | Public Member Functions | List of all members
std::hash< piranha::mp_rational< SSize > > Struct Template Reference

Specialisation of std::hash for piranha::mp_rational. More...

#include <piranha/mp_rational.hpp>

Public Types

typedef size_t result_type
 Result type.
 
typedef piranha::mp_rational< SSize > argument_type
 Argument type.
 

Public Member Functions

result_type operator() (const argument_type &q) const
 Hash operator. More...
 

Detailed Description

template<std::size_t SSize>
struct std::hash< piranha::mp_rational< SSize > >

Specialisation of std::hash for piranha::mp_rational.

Definition at line 2347 of file mp_rational.hpp.

Member Function Documentation

◆ operator()()

template<std::size_t SSize>
result_type std::hash< piranha::mp_rational< SSize > >::operator() ( const argument_type q) const
inline

Hash operator.

Parameters
qpiranha::mp_rational whose hash value will be returned.
Returns
q.hash().
See also
piranha::mp_rational::hash()

Definition at line 2360 of file mp_rational.hpp.


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