Implementation of class vdiff. More...
#include <string>#include <vector>#include <set>#include <algorithm>#include "triplet.hh"#include "rational.hh"#include "field.hh"#include "vdiff.hh"
Go to the source code of this file.
Classes | |
| struct | field_cmp |
| Compare fields by their components. More... | |
Functions | |
| template<class A , class B > | |
| static bool | lexcmp (const A &a, const B &b) |
| Lexicographically compare two containers. | |
Implementation of class vdiff.
Definition in file vdiff.cc.
| static bool lexcmp | ( | const A & | a, | |
| const B & | b | |||
| ) | [inline, static] |
Lexicographically compare two containers.
As the STL implementation of lexicographical comparison has such an awfully long name, and operates on iterator pairs instead of container objects, the use of this wrapper function makes code somewhat shorter.
| a | the first container to compare. | |
| b | the second container to compare. |
Definition at line 49 of file vdiff.cc.
Referenced by field_cmp::operator()(), and vdiff::operator<().
1.6.0