oomph::CRDoubleMatrix::CRDoubleMatrixComparisonHelper Struct Reference

Create a struct to provide a comparison function for std::sort. More...

#include <matrices.h>

Public Member Functions

bool operator() (const std::pair< int, double > &pair_1, const std::pair< int, double > &pair_2)
 

Detailed Description

Create a struct to provide a comparison function for std::sort.

Member Function Documentation

◆ operator()()

bool oomph::CRDoubleMatrix::CRDoubleMatrixComparisonHelper::operator() ( const std::pair< int, double > &  pair_1,
const std::pair< int, double > &  pair_2 
)
inline
946  {
947  // If the first argument of pair_1 is less than the first argument of
948  // pair_2 then return TRUE otherwise return FALSE
949  return (pair_1.first < pair_2.first);
950  }

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