pybind11/include/pybind11
Jason Rhinelander 5aa85be26e Added pybind11::make_key_iterator for map iteration
This allows exposing a dict-like interface to python code, allowing
iteration over keys via:

    for k in custommapping:
        ...

while still allowing iteration over pairs, so that you can also
implement 'dict.items()' functionality which returns a pair iterator,
allowing:

    for k, v in custommapping.items():
        ...

example-sequences-and-iterators is updated with a custom class providing
both types of iteration.
2016-08-11 21:22:05 -04:00
..
attr.h avoid C++ -> Python -> C++ overheads when passing around function objects 2016-07-10 10:44:44 +02:00
cast.h Added pybind11::make_key_iterator for map iteration 2016-08-11 21:22:05 -04:00
common.h Added pybind11::make_key_iterator for map iteration 2016-08-11 21:22:05 -04:00
complex.h nicer type_caster::load() calling conventions 2016-05-15 20:23:27 +02:00
descr.h descr<> fix for int-to-string conversion 2016-07-19 11:59:37 +02:00
eigen.h Fix signedness warnings 2016-08-05 00:06:28 +02:00
eval.h Python 2.7 fixes for eval() 2016-07-08 15:14:48 +02:00
functional.h Adopt PEP 484 type hints for C++ types exported to Python 2016-08-04 23:47:07 +02:00
numpy.h Adopt PEP 484 type hints for C++ types exported to Python 2016-08-04 23:47:07 +02:00
operators.h minor cleanups in common.h; updated author info and copyright year 2016-04-18 10:53:38 +02:00
pybind11.h Added pybind11::make_key_iterator for map iteration 2016-08-11 21:22:05 -04:00
pytypes.h Move support for return values of called Python functions 2016-08-08 13:47:37 -04:00
stl_bind.h gcc fix 2016-05-30 11:45:02 +02:00
stl.h Adopt PEP 484 type hints for C++ types exported to Python 2016-08-04 23:47:07 +02:00
typeid.h minor cleanups in common.h; updated author info and copyright year 2016-04-18 10:53:38 +02:00