Fn<> IsContiguousDetermines whether a container stores its elements contiguously in memory.
Determines whether a container stores its elements contiguously in memory.
Defined in | <seqan/sequence.h> |
---|---|
Signature |
IsContiguous<T>::Type;
IsContiguous<T>::VALUE;
|
Template Parameters
T |
The type that is tested for being a string. |
---|
Return Values
Type |
Either True or False, depending on whether T is stored contiguously. |
---|---|
VALUE |
Either true or false, depending on whether T is stored contiguously. |
Detailed Description
A sequence container is "contiguous", if its elements are stored in a single contiguous array. Examples for contiguous sequences are AllocString or char arrays.
If an object obj is a contiguous sequence, then begin(obj) can be converted to a pointer to the first element of the content array.