LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
std::hash< util::quantities::concepts::Interval< Q, Cat > > Struct Template Reference

Hash function of a interval or point is delegated to its quantity. More...

#include "intervals.h"

Public Member Functions

constexpr auto operator() (util::quantities::concepts::Interval< Q, Cat > key) const noexcept(noexcept(std::hash(key.quantity())))
 

Detailed Description

template<typename Q, typename Cat>
struct std::hash< util::quantities::concepts::Interval< Q, Cat > >

Hash function of a interval or point is delegated to its quantity.

Definition at line 1324 of file intervals.h.

Member Function Documentation

template<typename Q , typename Cat >
constexpr auto std::hash< util::quantities::concepts::Interval< Q, Cat > >::operator() ( util::quantities::concepts::Interval< Q, Cat >  key) const
inlinenoexcept

Definition at line 1325 of file intervals.h.

1327  {
1328  return std::hash(key.quantity());
1329  }
constexpr quantity_t const & quantity() const
Returns the value of the interval as a quantity.
Definition: intervals.h:185

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