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 and all schema types except numeric constants. 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:4334
typename traits_tag< ValueType >::type traits_tag_t
Shorthand for sbepp::traits_tag<T>::type
Definition sbepp.hpp:4647
constexpr auto addressof(T v) noexcept -> decltype(v(detail::addressof_tag{}))
Returns pointer to the underlying data referenced by a view.
Definition sbepp.hpp:1619
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:1580
- See also
sbepp::traits_tag_t