[C++-sig] Boost tuple example? (original) (raw)
David Abrahams dave at boost-consulting.com
Thu Dec 8 20:35:07 CET 2005
- Previous message: [C++-sig] Boost tuple example?
- Next message: [C++-sig] Boost tuple example?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> writes:
--- Matt <mjkeyes at sbcglobal.net> wrote:
Does anyone have an example of boost's use of tuples? For example, I am wanting to construct tuples in C++ and pass them on to Python (these will consist of basic types (const char*'s, integers, etc.) or object values. Look in the file: boost/libs/python/test/tuple.cpp You can probably learn a lot of tricks by spending 30 minutes to scan through all the *.cpp files in the boost/libs/python/test directory.
I read the OP as asking about how to translate boost::tuple, a completely C++ generalization of std::pair (rather than boost::python::tuple, a wrapper for native Python tuples) to/from Python's tuples.
Which is it?
-- Dave Abrahams Boost Consulting www.boost-consulting.com
- Previous message: [C++-sig] Boost tuple example?
- Next message: [C++-sig] Boost tuple example?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]