diff options
Diffstat (limited to 'src/include/stl_lite.h')
-rw-r--r-- | src/include/stl_lite.h | 45 |
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 |