ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
MPOTensor_detail::row_cmp< Tuple > Struct Template Reference

#include <mpotensor_detail.h>

Public Member Functions

bool operator() (Tuple const &i, Tuple const &j) const
 

Detailed Description

template<class Tuple>
struct MPOTensor_detail::row_cmp< Tuple >

Definition at line 115 of file mpotensor_detail.h.

Member Function Documentation

template<class Tuple >
bool MPOTensor_detail::row_cmp< Tuple >::operator() ( Tuple const &  i,
Tuple const &  j 
) const
inline

Definition at line 117 of file mpotensor_detail.h.

118  {
119  if (get<0>(i) < get<0>(j))
120  return true;
121  else if (get<0>(i) > get<0>(j))
122  return false;
123  else
124  return get<1>(i) < get<1>(j);
125  }

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