比如说下面四个type
struct CheckType0
{
int x;
};
struct CheckType1
{
CheckType1() {}
int x;
};
struct CheckType2
{
CheckType2() = default;
int x;
};
struct CheckType3
{
CheckType3();
int x;
};
CheckType3::CheckType3() = default;
这几个type哪几个是trivial type
【 在 z16166 的大作中提到: 】
: 感觉有时候msdn上解释挺清楚的
: Trivial, standard-layout, POD, and literal types
:
https://learn.microsoft.com/en-us/cpp/cpp/trivial-standard-layout-and-pod-types?view=msvc-170: ...................
--
FROM 67.186.83.*