Metafunction
Eval
Convert from bool values to types (True and False ).
Include Headers
seqan/basic.h
Parameters
The boolean to evaluate. Types: |
Examples
Demonstrate the usage of Eval to bridge between bool values and the logical tags.
{
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;
}
See Also
SeqAn - Sequence Analysis Library - www.seqan.de