template<typename ValueType>
struct sbepp::traits_tag< ValueType >
Maps representation type to its tag.
- Template Parameters
-
| ValueType | representation type |
Can be used to avoid typing both representation and tag types explicitly in code. Available for messages, groups, entries and all schema types except numeric constants. Group entry representation is mapped to the enclosing group tag. Not available for <data> members.
Example:
template<typename Message>
void send_message(Message m){
log("sending `{}` message", msg_name);
}
Provides various traits/attributes of a <message> element.
Definition sbepp.hpp:4366
typename traits_tag< ValueType >::type traits_tag_t
Shorthand for sbepp::traits_tag<T>::type
Definition sbepp.hpp:4692
constexpr auto addressof(T v) noexcept -> decltype(v(detail::addressof_tag{}))
Returns pointer to the underlying data referenced by a view.
Definition sbepp.hpp:1631
constexpr std::size_t size_bytes(T v) noexcept
Returns the size of the underlying data represented by message/group/entry/data/composite view,...
Definition sbepp.hpp:1592
- See also
sbepp::traits_tag_t