summaryrefslogtreecommitdiffstats
path: root/src/include/stl_lite.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-07-22 11:37:11 +0800
committerPeng Wu <alexepico@gmail.com>2013-07-22 11:37:11 +0800
commitb78429d78df745dd327b6dada6b9bd71ea5df84e (patch)
tree82c4625db8674c66d69fd566fce8efc347e3cb3a /src/include/stl_lite.h
downloadlibzhuyin-b78429d78df745dd327b6dada6b9bd71ea5df84e.tar.gz
libzhuyin-b78429d78df745dd327b6dada6b9bd71ea5df84e.tar.xz
libzhuyin-b78429d78df745dd327b6dada6b9bd71ea5df84e.zip
import libpinyin code
Diffstat (limited to 'src/include/stl_lite.h')
-rw-r--r--src/include/stl_lite.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/include/stl_lite.h b/src/include/stl_lite.h
new file mode 100644
index 0000000..5ad977d
--- /dev/null
+++ b/src/include/stl_lite.h
@@ -0,0 +1,45 @@
+#ifndef STL_LITE_H
+#define STL_LITE_H
+
+#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
+#include <algorithm>
+
+namespace std_lite{
+
+ /**
+ * To restrict the usage of STL functions in libpinyin,
+ * all needed functions should be imported here.
+ */
+
+
+ using std::min;
+
+
+ using std::max;
+
+
+ using std::pair;
+
+
+ using std::make_pair;
+
+
+ using std::lower_bound;
+
+
+ using std::upper_bound;
+
+
+ using std::equal_range;
+
+
+ using std::make_heap;
+
+
+ using std::pop_heap;
+
+
+}
+#endif