13#include "comms/details/ReadIteratorHelper.h"
14#include "comms/details/WriteIteratorHelper.h"
23template <
typename TMessage,
typename TIter>
24auto readIteratorFor(TIter&& iter) ->
decltype(details::ReadIteratorHelper<>::template get<TMessage>(std::forward<TIter>(iter)))
26 return details::ReadIteratorHelper<>::template get<TMessage>(std::forward<TIter>(iter));
34template <
typename TMessage,
typename TIter>
36 decltype(details::ReadIteratorHelper<>::template get<
typename std::decay<
decltype(msg)>::type>(std::forward<TIter>(iter)))
38 static_cast<void>(msg);
39 return details::ReadIteratorHelper<>::template get<
typename std::decay<
decltype(msg)>::type>(std::forward<TIter>(iter));
46template <
typename TMessage,
typename TIter>
47auto writeIteratorFor(TIter&& iter) ->
decltype(details::WriteIteratorHelper<>::template get<TMessage>(std::forward<TIter>(iter)))
49 return details::WriteIteratorHelper<>::template get<TMessage>(std::forward<TIter>(iter));
57template <
typename TMessage,
typename TIter>
59 decltype(details::WriteIteratorHelper<>::template get<
typename std::decay<
decltype(msg)>::type>(std::forward<TIter>(iter)))
61 static_cast<void>(msg);
62 return details::WriteIteratorHelper<>::template get<
typename std::decay<
decltype(msg)>::type>(std::forward<TIter>(iter));
Main namespace for all classes / functions of COMMS library.
auto readIteratorFor(TIter &&iter) -> decltype(details::ReadIteratorHelper<>::template get< TMessage >(std::forward< TIter >(iter)))
Create and initialise iterator for message read.
Definition iterator.h:24
auto writeIteratorFor(TIter &&iter) -> decltype(details::WriteIteratorHelper<>::template get< TMessage >(std::forward< TIter >(iter)))
Create and initialise iterator for message write.
Definition iterator.h:47