开发者

what is __SGI_STL_PORT?

开发者 https://www.devze.com 2023-02-09 11:34 出处:网络
I\'ve been looking over some code for a开发者_C百科 class and I see in one place it has this line:

I've been looking over some code for a开发者_C百科 class and I see in one place it has this line:

#ifndef __SGI_STL_PORT

What is __SGI_STL_PORT ? When will this be defined?


This is a "feature test macro"; it will be defined when using the STL port implementation of the standard template library (so, for example, if you include <vector> and it was provided by the STL port version of the library, then this macro will be defined). This can be useful for taking advantage of implementation-specific extensions which are not guaranteed to exist by the C++ standard.

0

精彩评论

暂无评论...
验证码 换一张
取 消