Metafunction
Eval
Convert from bool values to types (True and False).
Eval<b>::Type
Include Headers
seqan/basic.h
Parameters
b
The boolean to evaluate.
Types: bool
Return Values
Either True or False, depending on b.
Examples
Demonstrate the usage of Eval to bridge between bool values and the logical tags.
void printBoolType(True const &)
{
    std::cout << "true" << std::endl;
}
 
void printBoolType(False const &)
{
    std::cout << "false" << std::endl;
}
 
int main(int argc, char ** argv)
{
    using namespace seqan;
 
    printBoolType(Eval<true>::Type());   // => "true\n"
    printBoolType(Eval<false>::Type());  // => "false\n"
    return 0;
}
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2013/07/11 09:12:38