Qpid Proton C++ API  0.37.0
list.hpp File Reference

Unsettled API - Enable conversions between proton::value and std::list. More...

#include "./encoder.hpp"
#include "./decoder.hpp"
#include <list>
#include <utility>

Go to the source code of this file.

Namespaces

 proton
 The main Proton namespace.
 
 proton::codec
 Unsettled API - AMQP data encoding and decoding.
 

Functions

template<class T , class A >
encoder & operator<< (encoder &e, const std::list< T, A > &x)
 std::list<T> for most T is encoded as an AMQP array.
 
template<class A >
encoder & operator<< (encoder &e, const std::list< value, A > &x)
 Specialize for std::list<value>, encode as AMQP list (variable type)
 
template<class A >
encoder & operator<< (encoder &e, const std::list< scalar, A > &x)
 Specialize for std::list<scalar>, encode as AMQP list (variable type)
 
template<class A , class K , class T >
encoder & operator<< (encoder &e, const std::list< std::pair< K, T >, A > &x)
 Specialize for std::list<std::pair<k,t> >, encode as AMQP map. More...
 
template<class T , class A >
decoder & operator>> (decoder &d, std::list< T, A > &x)
 Decode to std::list<T> from an amqp::LIST or amqp::ARRAY.
 
template<class A , class K , class T >
decoder & operator>> (decoder &d, std::list< std::pair< K, T >, A > &x)
 Decode to std::list<std::pair<K, T> from an amqp::MAP.
 

Detailed Description

Unsettled API - Enable conversions between proton::value and std::list.