int_map_indexing_suite.cpp 492 B

12345678910111213141516
  1. // Copyright David Abrahams 2004. Distributed under the Boost
  2. // Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include <boost/python/class.hpp>
  5. #include <boost/python/suite/indexing/map_indexing_suite.hpp>
  6. void int_map_indexing_suite()
  7. {
  8. using namespace boost::python;
  9. // Compile check only...
  10. class_<std::map<int, int> >("IntMap")
  11. .def(map_indexing_suite<std::map<int, int> >())
  12. ;
  13. }