A Tag
type is typically used as a template parameter in (most) generic support
layer templates to specify a particular dataflow framework. This allows
different dataflow frameworks to be defined on the same types without
clashing. If clashing is not a concern when developing a support layer
for a framework, the Tag
can be omitted in which case it defaults to default_tag.
Notation
- T
-
A
Tagtype.
Requirements
|
Name |
Expression |
Result Type |
Semantics |
|---|---|---|---|
|
default_tag Inheritance |
|
Boolean MPL Metafunction that evaulates to true |
To allow concept checking on |
|
Tag Concept Check |
|
Boolean MPL Metafunction that evaulates to true |
Concept check for the |
Examples
The following code declares the VTK
framework Tag
- it is a part of the example
showing how to provide a VTK support layer.
namespace boost { namespace dataflow { namespace vtk { // The vtk framework tag struct tag : public default_tag {}; } } } // namespace boost::dataflow::vtk