vcl_algorithm.h

来自「InsightToolkit-1.4.0(有大量的优化算法程序)」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef vcl_algorithm_h_
#define vcl_algorithm_h_

#include "vcl_compiler.h"

#if !VCL_USE_NATIVE_STL
# include "emulation/vcl_algorithm.h"

// -------------------- iso
#else
# include "iso/vcl_algorithm.h"
#endif


#ifdef VCL_VC
# undef  vcl_max
# define vcl_max vcl_max
# undef  vcl_min
# define vcl_min vcl_min
template <typename T>
inline T vcl_max(T const& a, T const& b)
{
  return (a > b) ? a : b;
}

template <typename T>
inline T vcl_min(T const& a, T const& b)
{
  return (a < b) ? a : b;
}
#endif

#if VCL_USE_IMPLICIT_TEMPLATES
# include "vcl_algorithm.txx"
#endif

#endif // vcl_algorithm_h_

⌨️ 快捷键说明

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