shape_doc 0.1
ordered_pair< K > Struct Template Reference

#include <ssi_ordered_pair.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<class K>
struct ordered_pair< K >

Definition at line 5 of file ssi_ordered_pair.hpp.


Constructor & Destructor Documentation

ordered_pair ( const K &  a,
const K &  b 
) [inline]

Definition at line 7 of file ssi_ordered_pair.hpp.

References ordered_pair< K >::first, and ordered_pair< K >::second.

  { 
    if ( a < b ) 
      { first = b; second = a; }
    else
      { first = a; second = b; };
  };

Member Function Documentation

bool operator< ( const ordered_pair< K > &  p) [inline]

Definition at line 15 of file ssi_ordered_pair.hpp.

References ordered_pair< K >::first, and ordered_pair< K >::second.

  { 
    return first<p.first || (first<p.first) && (second<p.second); };

Member Data Documentation


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