15 public bp::def_visitor<VectorAdditions<Container> > {
19 template <
class Class>
23 .def(
"__str__", &to_string)
24 .def(
"__init__", make_constructor(&from_iter))
28 static boost::shared_ptr<Container> from_iter(
const bp::object& obj)
30 boost::shared_ptr<Container> c(
new Container);
31 bp::container_utils::extend_container(*c.get(), obj);
35 static std::string to_string(Container& cl)
40 for (
typename Container::const_iterator
41 i=cl.begin(), e=cl.end(); i!=e; ++i) {