std_inc.h

来自「C++ patterns设计模式」· C头文件 代码 · 共 50 行

H
50
字号
#ifndef INCLUDED_STD_INC
#define INCLUDED_STD_INC

#if defined(HAS_PRAGMA_ONCE)
#pragma PRAGMA_ONCE_DECLARE
#endif

//c-runtime
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <ctime>
#include <cstring>
#include <cassert>
#include <sys/stat.h>
#include <direct.h>

//stl
#if defined(_MSC_VER) && (_MSC_VER<1300)
    // debug string too long
    #pragma warning( disable : 4786)
#endif

#include <list>
#include <set>
#include <map>
#include <string>
#include <vector>

// process hash_map
#if defined(_MSC_VER) 
	#if defined(_STLP_STRING) 
	// we believe _STLP_STRING included means using STLPORT
        #include <hash_map>
	#elif (_MSC_VER >= 1300)
	    // hasp_map not standard container
	    #pragma warning(disable: 4996)
	    #include <hash_map>    
    #else
    	// no hash_map, use map as hash_map
        #define hash_map map
    #endif
#endif

#include <memory>
#include <iterator>
#include <algorithm>
#include <functional>

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?