Concept
ComparableConcept
A type that can be compared.

LessThanComparableConcept

ComparableConcept

IntegerConcept | OrderedAlphabetConcept

SignedIntegerConcept | UnsignedIntegerConcept

FiniteOrderedAlphabetConcept

Concept Definition
Refines
LessThanComparableConcept
Required Functions

operator> | C++ built-in greater-than comparison operator.
operator>= | C++ built-in greather-than-or-equal comparison operator.
operator< | C++ built-in less-than comparison operator. (LessThanComparableConcept)
operator<= | C++ built-in less-than-or-equal comparison operator.

Refinements

IntegerConcept | An integral type.
OrderedAlphabetConcept | Totally strict ordered alphabet.

Comparable<T>
Include Headers
seqan/basic.h
Remarks
Expects instances of type T to be comparable. Comparison operators must return boolean convertible values.
Implemented by

SimpleType | Implementation for "simple" types. (FiniteOrderedAlphabetConcept)

Examples
Valid expressions:
a < b;
a > b;
a <= b;
a >= b;
Invariants:

a<b Û b>a\nl a<=b Û b>=a\nl a<=b Û a<b or (a<=b and a>=b)

See Also
EqualityComparableConcept, LessThanComparableConcept
SeqAn - Sequence Analysis Library - www.seqan.de

Page built @2014/10/13 16:12:57