PairToTupleConverter< T1, T2 > Struct Template Reference

helper to convert between python tuple and std::pair More...

#include <pair_to_tuple_conv.hh>

Static Public Member Functions

static PyObject * convert (const std::pair< T1, T2 > &pair)

Detailed Description

template<class T1, class T2>
struct ost::PairToTupleConverter< T1, T2 >

helper to convert between python tuple and std::pair

Usage:

boost::python::to_python_converter<std::pair<T1, T2>, PairToTupleConverter<T1, T2> >()

Definition at line 30 of file pair_to_tuple_conv.hh.


Member Function Documentation

static PyObject* convert ( const std::pair< T1, T2 > &  pair  )  [inline, static]

Definition at line 31 of file pair_to_tuple_conv.hh.


The documentation for this struct was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 1 Mar 2018 for OpenStructure by  doxygen 1.6.1