9 template <
typename T1,
typename T2>
11 return bp::make_tuple(pair.first, pair.second);
14 template <
typename T1,
typename T2>
15 std::pair<T1, T2>
copy(
const std::pair<T1, T2>& pair) {
19 template <
typename T1,
typename T2>
20 const std::pair<T1, T2>&
passthrough(
const std::pair<T1, T2>& pair) {
27 typedef std::pair<int, double> PairType;
30 bp::def(
"std_pair_to_tuple", std_pair_to_tuple<int, double>);
31 bp::def(
"copy", copy<int, double>);
32 bp::def(
"passthrough", passthrough<int, double>,
33 bp::return_value_policy<bp::copy_const_reference>());