algorithm.h

来自「粗糙集应用软件」· C头文件 代码 · 共 41 行

H
41
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

#ifndef __BASIC_ALGORITHM_H__
#define __BASIC_ALGORITHM_H__

#include <copyright.h>

#if 1
	#include <kernel/system/stl/algorithm>
	#include <kernel/system/stl/numeric>
#else
	#include <algorithm>
	#include <functional>
	#include <numeric>
	#if defined(min)
		#undef min
		namespace std {
			template <class T>
				inline const T &min(const T &a, const T &b) {
					return a < b ? a : b;
				}
		}
	#endif
	#if defined(max)
		#undef max
		namespace std {
			template <class T>
				inline const T &max(const T &a, const T &b) {
					return b < a ? a : b;
				}
		}
	#endif
#endif

#endif

⌨️ 快捷键说明

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