22 #ifndef NDN_CXX_TAG_HPP
23 #define NDN_CXX_TAG_HPP
44 return <type-identifier>;
54 template<
typename T,
int TypeId>
Provides a tag type for simple types.
constexpr SimpleTag(const T &value) noexcept
Explicitly convertible from T.
static constexpr int getTypeId() noexcept
constexpr const T & get() const noexcept
Returns the enclosed value.
Base class for packet tags that can hold any arbitrary information.
static constexpr int getTypeId() noexcept
Returns an integer that uniquely identifies this Tag type.