7 This policy converts an STL container to a generator function that can be used
8 in lua to iterate over the container. It works on any container that defines
9 ``begin()`` and ``end()`` member functions (they have to return iterators).
16 #include <luabind/iterator_policy.hpp>
32 std::vector<std::string> names;
40 .def_readwrite("names", &X::names, **return_stl_iterator**)
46 > for name in a.names do