OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions
PairToTupleConverter< T1, T2 > Struct Template Reference

#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)
inlinestatic

Definition at line 31 of file pair_to_tuple_conv.hh.


The documentation for this struct was generated from the following file: