关于 :: 运算符
在ace的代码中,发现了如下代码
size_t const len = ::wcslen (wstr) + 1;
这里的::是代表什么意思,我google后发现有个类似问题,说这种::不带东西的表示全局作用域,但我还是搞不清楚什么意思
在ctime中,也有类似的:
#undef clock
#undef difftime
#undef mktime
#undef time
#undef asctime
#undef ctime
#undef gmtime
#undef localtime
#undef strftime
namespace std
{
using ::clock_t;
using ::time_t;
using ::tm;
using ::clock;
using ::difftime;
using ::mktime;
using ::time;
using ::asctime;
using ::ctime;
using ::gmtime;
using ::localtime;
using ::strftime;
}