shards  Version of the Day
 All Classes Functions Variables Typedefs Enumerations Enumerator Groups
shards::Compare< n, i > Struct Template Reference

Lexicographical comparison of two arrays. More...

#include <Shards_SimpleArrayOps.hpp>

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
nNumber of members to iterate.

Definition at line 194 of file Shards_SimpleArrayOps.hpp.


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