Concept
SignedIntegerConcept
An integral type with a sign.

LessThanComparableConcept

ComparableConcept | EqualityComparableConcept

IntegerConcept

SignedIntegerConcept

Concept Definition
Refines
IntegerConcept
Required Functions

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

SignedIntegerConcept<T>
Include Headers
seqan/basic.h
Remarks
Expects an instance of type T to represent (possibly negative) integral values and to provide the same operations as int. Every type T that fulfills the IntegerConcept fulfills either the SignedIntegerConcept or the UnsignedIntegerConcept.
Examples
SEQAN_CONCEPT_ASSERT((SignedIntegerConcept<int>));
//SEQAN_CONCEPT_ASSERT((SignedIntegerConcept<unsigned short>)); // fails to compile
std::cout << Is<SignedIntegerConcept<char> >::VALUE << std::endl; // 0
std::cout << Is<SignedIntegerConcept<int> >::VALUE << std::endl; // 0
std::cout << Is<SignedIntegerConcept<unsigned short> >::VALUE << std::endl; // 1
std::cout << Is<SignedIntegerConcept<double> >::VALUE << std::endl; // 0
Valid expressions:
T a;
int b;
a = -1;
b = a;
a = a - a;
a = a + 1;
a = a - 1;
a = a / 2;
static_cast<T>(-1) < static_cast<T>(0);
See Also
IntegerConcept
SeqAn - Sequence Analysis Library - www.seqan.de

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