OpenStructure
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:

register_to_python_converter<PairToTupleConverter<T1, T2>, std::pair<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: