1 #ifndef PROTON_CODEC_FORWARD_LIST_HPP
2 #define PROTON_CODEC_FORWARD_LIST_HPP
23 #include "./encoder.hpp"
24 #include "./decoder.hpp"
26 #include <forward_list>
33 template <
class T,
class A>
35 return e << encoder::array(x, internal::type_id_of<T>::value);
48 template <
class A,
class K,
class T>
55 template <
class A,
class K,
class T>
decoder&
operator>>(
decoder& d, std::forward_list<std::pair<K, T> , A>& x) {
return d >> decoder::pair_sequence(x); }
60 #endif // PROTON_CODEC_FORWARD_LIST_HPP