Fn<> IntegralForValue
Returns an itegral type that provides sufficient space to store a value.

Defined in <seqan/basic.h>
Signature IntegralForValue<T>::Type;

Template Parameters

T The type to query.

Return Values

Type An integral type.

Detailed Description

The type is the smallest unsigned integral type that has a size of at least BytesPerValue bytes.

sizeof(T) in bytes integral types
1 unsigned char
2 unsigned short
3 unsigned int
4 unsigned int
> 4 int64_t

Note that the returned integral type cannot store T values, if T takes more than 8 bytes, since there exists no integral type that provides sufficient space to store types of this size.

See Also