shards::Compare< n, i > Struct Template Reference
[Simple Compile-time Sized Array Operations]

Lexicographical comparison of two arrays. More...

#include <Shards_SimpleArrayOps.hpp>

List of all members.

Public Types

enum  {
  N = n,
  I = i
}

Static Public Member Functions

template<typename T >
static bool equal (const T *const x, const T *const y)
 All members are equal.
template<typename T >
static bool not_equal (const T *const x, const T *const y)
 All members are not equal.
template<typename T >
static bool less (const T *const x, const T *const y)
 First non-equal members satisfy x[k] < y[k].
template<typename T >
static bool less_equal (const T *const x, const T *const y)
 First non-equal members satisfies x[k] <= y[k].
template<typename T >
static bool greater (const T *const x, const T *const y)
 First non-equal members satisfies x[k] > y[k].
template<typename T >
static bool greater_equal (const T *const x, const T *const y)
 First non-equal members satisfies x[k] >= y[k].

Detailed Description

template<unsigned n, unsigned i = 0>
struct shards::Compare< n, i >

Lexicographical comparison of two arrays.

Template Parameters:
n Number of members to iterate.

Definition at line 172 of file Shards_SimpleArrayOps.hpp.


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

Generated on Tue Oct 20 14:14:35 2009 for shards by  doxygen 1.6.1