cds
2.3.2
|
[type-option] Option setter specifies a tag More...
#include <cds/opt/options.h>
[type-option] Option setter specifies a tag
Suppose, you have a struct
and you want that your class X
would be derived from several Feature:
How can you distinguish one Feature
from another? You may use a tag option:
Now you can distinguish one Feature
from another:
tag
option setter allows you to do things like this for an option-centric approach:
This option setter is widely used in cds::intrusive containers to distinguish between different intrusive part of container's node.
An incomplete type can serve as a Tag
.