aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/cpp11_std_unordered_map.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/cpp11_std_unordered_map.i')
-rw-r--r--Examples/test-suite/cpp11_std_unordered_map.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/Examples/test-suite/cpp11_std_unordered_map.i b/Examples/test-suite/cpp11_std_unordered_map.i
new file mode 100644
index 000000000..4bdec9c7c
--- /dev/null
+++ b/Examples/test-suite/cpp11_std_unordered_map.i
@@ -0,0 +1,11 @@
+%module cpp11_std_unordered_map
+
+%include <std_string.i>
+%include <std_unordered_map.i>
+
+%template(UnorderedMapIntInt) std::unordered_map<int, int>;
+%template(UnorderedMapStringInt) std::unordered_map<std::string, int>;
+
+%inline %{
+std::unordered_map<std::string, int, std::hash< std::string >,std::equal_to< std::string >,std::allocator< std::pair< std::string const,int > > > inout(std::unordered_map<std::string, int> m) { return m; }
+%}