1 /* ----------------------------------------------------------------------------- 2 * std_common.i 3 * 4 * SWIG typemaps for STL - common utilities 5 * ----------------------------------------------------------------------------- */ 6 7 %include <std/std_except.i> 8 9 %types(std::size_t); 10 %apply size_t { std::size_t }; 11 %apply const unsigned long& { const std::size_t& }; 12 13 %types(std::ptrdiff_t); 14 %apply long { std::ptrdiff_t }; 15 %apply const long& { const std::ptrdiff_t& }; 16 17 18