Fn<> Find
A metafunction to retrieve the index of a tag in the TagList.

Defined in <seqan/basic.h>
Signature Find<TTagList, TSearchTag>::VALUE;

Template Parameters

TSearchTag A tag to retrieve the index of.
TTagList A tag list.

Return Values

VALUE This meta-function can be used to test whether the value of a TagSelector equals a specific tag.

Detailed Description

Examples

AutoSeqFormat format;
if (format.tagId == Find<AutoSeqFormat, Fasta>::VALUE)
{
    // do something specific to Fasta format
}

// or even shorter:

if (isEqual(format.tagId, Fasta()))
{
    // do something specific to Fasta format
}