vcl_string.h

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

H
29
字号
#ifndef vcl_vc_string_h_
#define vcl_vc_string_h_
/*
  fsm@robots.ox.ac.uk
*/

#include <string>

#define vcl_basic_string  std::basic_string
#ifndef vcl_char_traits
#define vcl_char_traits   std::char_traits
#endif

//fsm@robots: for some reason, vc60 crashes if vnl_fwd.h is used in conjunction
//with this #define. using a typedef seems to fix it.
//#define vcl_string        std::string
typedef std::string vcl_string;

#if defined(VCL_VC60)
# include <vcl_iostream.h>

inline vcl_ostream& operator<<(vcl_ostream& os, vcl_string const& s)
{
  return os << s.c_str();
}
#endif

#endif // vcl_vc_string_h_

⌨️ 快捷键说明

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