Macro
SEQAN_CTOR_ENABLE_IF
Bind the visibility of a constructor to an expression.
Include Headers
seqan/basic.h
Parameters
Boolean type. If True or a metafunction that returns True, the following function is visible, otherwise not. Remarks: The boolean value must be available at compile-time, e.g. |
Remarks
This macro allows to bind the visibility of a constructor to a boolean expression
by using the SFINAE principle for an optional argument with default value.
It can be used as the last dummy-argument of a constructor.
To avoid an unused argument warning, call ignoreUnusedVariableWarning(dummy) in the constructor's body.
Examples
Here is an example on how to use the macro:
1 | |
2 | |
3 | |
4 | |
5 | |
6 |
Snippet from "enable_if.cpp"
SeqAn - Sequence Analysis Library - www.seqan.de