ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
boost::hash< std::pair< NU1Charge< N, S >, NU1Charge< N, S > > > Class Template Reference

#include <nu1_tpl.h>

Public Member Functions

size_t operator() (std::pair< NU1Charge< N, S >, NU1Charge< N, S > > const &Pair_of_charge) const
 

Detailed Description

template<int N, class S>
class boost::hash< std::pair< NU1Charge< N, S >, NU1Charge< N, S > > >

Definition at line 100 of file nu1_tpl.h.

Member Function Documentation

template<int N, class S >
size_t boost::hash< std::pair< NU1Charge< N, S >, NU1Charge< N, S > > >::operator() ( std::pair< NU1Charge< N, S >, NU1Charge< N, S > > const &  Pair_of_charge) const
inline

Definition at line 102 of file nu1_tpl.h.

102  {
103  std::size_t seed = 0;
104  for(int i(0); i<N; i++){
105  boost::hash_combine(seed, (Pair_of_charge.first)[i]);
106  boost::hash_combine(seed, (Pair_of_charge.second)[i]);
107  }
108  return seed;
109  }

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