LSDTopoTools
 All Classes Files Functions Variables Friends Pages
Public Member Functions | List of all members
sort_pair_second< T1, T2, Pred > Struct Template Reference

Template for sorting a std::pair. More...

#include <LSDCatchmentModel.hpp>

Public Member Functions

bool operator() (const std::pair< T1, T2 > &left, const std::pair< T1, T2 > &right)
 

Detailed Description

template<class T1, class T2, class Pred = std::less<T2>>
struct sort_pair_second< T1, T2, Pred >

Template for sorting a std::pair.

This template will perform a sort on the std::pair types. It will sort ascending based on the second item in the pair. It is intended to mimic the C# method: sort(Array,Array). Needs further testing, but should work in principle.

Author
DAV

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