[Python] How to expose std::pair to python using boost::python?

Discussão em 'Python' iniciado por Stack, Março 5, 2025.

  1. Stack

    Stack Membro Participativo

    How to expose std::pair to python using boost::python? When I expose for example vector<string> I simply write:

    class_<std::vector<std::string> >("StringVec")
    .def(vector_indexing_suite<std::vector<std::string> >())
    ;


    But I don't know how to deal with std::pair.

    Continue reading...

Compartilhe esta Página