1 #ifndef PROTON_CODEC_LIST_HPP 2 #define PROTON_CODEC_LIST_HPP 38 template <
class T,
class A>
39 encoder& operator<<(encoder& e, const std::list<T, A>& x) {
40 return e << encoder::array(x, internal::type_id_of<T>::value);
45 encoder& operator<<(encoder& e, const std::list<value, A>& x) {
return e << encoder::list(x); }
49 encoder& operator<<(encoder& e, const std::list<scalar, A>& x) {
return e << encoder::list(x); }
53 template <
class A,
class K,
class T>
54 encoder& operator<<(encoder& e, const std::list<std::pair<K,T>, A>& x) {
return e << encoder::map(x); }
60 template <
class A,
class K,
class T>
decoder&
operator>>(
decoder& d, std::list<std::pair<K, T> , A>& x) {
return d >> decoder::pair_sequence(x); }
65 #endif // PROTON_CODEC_LIST_HPP Unsettled API - A stream-like encoder from C++ values to AMQP bytes.
Definition: encoder.hpp:50
Unsettled API - A stream-like decoder from AMQP bytes to C++ values.
internal::enable_if< internal::is_unknown_integer< T >::value, decoder & >::type operator>>(decoder &d, T &i)
operator>> for integer types that are not covered by the standard overrides.
Definition: decoder.hpp:209
Unsettled API - A stream-like encoder from C++ values to AMQP bytes.
The main Proton namespace.
Definition: annotation_key.hpp:33
Unsettled API - A stream-like decoder from AMQP bytes to C++ values.
Definition: decoder.hpp:56