A type with a specified tag. More...
#include <TupleLookupByTag.h>
Public Types | |
using | tag = Tag |
Tag of this object. More... | |
using | tagged_type = T |
Type of the object which was tagged. More... | |
Public Member Functions | |
template<typename... Args> | |
TaggedType (Args &&...args) | |
A type with a specified tag.
T | the base type being tagged |
Tag | the tag to be assigned to the new type |
add_tag
, TagExtractor
The new type TaggedType<T, Tag>
inherits from T
(including its constructors) and adds (and hides existing) tag
type with value Tag
. This type is suitable to be used in the tag-related traits.
For example:
Definition at line 597 of file TupleLookupByTag.h.
using util::TaggedType< T, Tag >::tag = Tag |
Tag of this object.
Definition at line 603 of file TupleLookupByTag.h.
using util::TaggedType< T, Tag >::tagged_type = T |
Type of the object which was tagged.
Definition at line 604 of file TupleLookupByTag.h.
|
inline |
Definition at line 601 of file TupleLookupByTag.h.