Qpid Proton C++ API 0.39.0
 
Loading...
Searching...
No Matches
vector.hpp File Reference

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

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

Go to the source code of this file.

Namespaces

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

Functions

template<class T , class A >
encoder & operator<< (encoder &e, const std::vector< T, A > &x)
 Encode std::vector<T> as amqp::ARRAY (same type elements)
 
template<class A >
encoder & operator<< (encoder &e, const std::vector< value, A > &x)
 Encode std::vector<value> encode as amqp::LIST (mixed type elements)
 
template<class A >
encoder & operator<< (encoder &e, const std::vector< scalar, A > &x)
 Encode std::vector<scalar> as amqp::LIST (mixed type elements)
 
template<class A , class K , class T >
encoder & operator<< (encoder &e, const std::vector< std::pair< K, T >, A > &x)
 Encode std::deque<std::pair<k,t> > as amqp::MAP, preserves order of entries.
 
template<class T , class A >
decoder & operator>> (decoder &d, std::vector< T, A > &x)
 Decode to std::vector<T> from an amqp::LIST or amqp::ARRAY.
 
template<class A , class K , class T >
decoder & operator>> (decoder &d, std::vector< std::pair< K, T >, A > &x)
 Decode to std::vector<std::pair<K, T> from an amqp::MAP.
 

Detailed Description

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