What about the types int2, int3, float2, float3 etc

后端 未结 5 1017
孤城傲影
孤城傲影 2020-12-20 13:03

I\'ve seen different code snippets using these types, but I haven\'t seen if they are defined in some or just defined in a \"local header file\"

5条回答
  •  心在旅途
    2020-12-20 13:31

    These types are not standard and I've never seen them. Are you sure they weren't used as (terrible choices of) identifiers instead of types?

    Some non-standard types that are quite likely available anyway are int32_t, uint64_t, etc. (These are specified by C99, so most modern C++ compilers also let you use them in C++.)

提交回复
热议问题