sbepp
Loading...
Searching...
No Matches
sbepp::traits_tag< ValueType > Struct Template Reference

Maps representation type to its tag. More...

Public Types

using type = Tag
 Tag to access ValueType's traits.
 

Detailed Description

template<typename ValueType>
struct sbepp::traits_tag< ValueType >

Maps representation type to its tag.

Template Parameters
ValueTyperepresentation 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){
constexpr auto msg_name = sbepp::message_traits<
log("sending `{}` message", msg_name);
}
Provides various traits/attributes of a <message> element.
Definition sbepp.hpp:4341
typename traits_tag< ValueType >::type traits_tag_t
Shorthand for sbepp::traits_tag<T>::type
Definition sbepp.hpp:4654
constexpr auto addressof(T v) noexcept -> decltype(v(detail::addressof_tag{}))
Returns pointer to the underlying data referenced by a view.
Definition sbepp.hpp:1626
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:1587
See also
sbepp::traits_tag_t

The documentation for this struct was generated from the following file: