Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::SharedSetData::less_vect Struct Reference

Public Member Functions

bool operator() (const std::vector< unsigned > &a, const std::vector< unsigned > &b) const
 

Detailed Description

Map type for lookup of ProcHandleMapType instance by rank

Definition at line 131 of file SharedSetData.hpp.

Member Function Documentation

◆ operator()()

bool moab::SharedSetData::less_vect::operator() ( const std::vector< unsigned > &  a,
const std::vector< unsigned > &  b 
) const
inline

Definition at line 133 of file SharedSetData.hpp.

134  {
135  // sort by size first
136  if( a.size() != b.size() ) return a.size() < b.size();
137  // if same size, sort by first non-equal value
138  size_t i = 0;
139  while( i != a.size() && a[i] == b[i] )
140  ++i;
141  return i != a.size() && a[i] < b[i];
142  }

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