StackOverflow Questions for Tag: standard-layout

Armen Tsirunyan
Armen Tsirunyan

Reputation: 133092

What are aggregates and trivial types/PODs, and how/why are they special?

Score: 708

Views: 224931

Answers: 6

Read More
Leon
Leon

Reputation: 2069

C++ struct with anonymous union

Score: 1

Views: 136

Answers: 1

Read More
The Floating Brain
The Floating Brain

Reputation: 966

Anonymous Unions in C++ Contiguous Memory Layout

Score: 1

Views: 188

Answers: 2

Read More
Arek' Fu
Arek' Fu

Reputation: 857

Casting an array of standard-layout objects to array of elements

Score: 2

Views: 116

Answers: 2

Read More
lei hu
lei hu

Reputation: 323

What reasons cause a class C, which inherits from class A and has only one member variable of type B, not to be a standard-layout class?

Score: 3

Views: 101

Answers: 0

Read More
skypjack
skypjack

Reputation: 50548

Why is std::is_pod deprecated in C++20?

Score: 136

Views: 25780

Answers: 1

Read More
Dan
Dan

Reputation: 2886

Is casting a struct to an integer legal?

Score: 2

Views: 160

Answers: 1

Read More
esam
esam

Reputation: 610

Is it legal to access private non-static first data member of a standard layout class?

Score: 2

Views: 86

Answers: 1

Read More
Nik Polin
Nik Polin

Reputation: 11

How to define a type so it can be static initialized?

Score: 1

Views: 133

Answers: 1

Read More
Michele Piccolini
Michele Piccolini

Reputation: 2953

Trivial class that is not standard layout and vice versa

Score: 1

Views: 106

Answers: 0

Read More
dyp
dyp

Reputation: 39141

Common initial sequence and alignment

Score: 14

Views: 1227

Answers: 3

Read More
François Andrieux
François Andrieux

Reputation: 29032

Using standard layout types to communicate with other languages

Score: 2

Views: 55

Answers: 1

Read More
Arthur R.
Arthur R.

Reputation: 383

"Merge" PODs into one

Score: 1

Views: 188

Answers: 1

Read More
lisyarus
lisyarus

Reputation: 15567

Guaranteed memory layout for standard layout struct with a single array member of primitive type

Score: 27

Views: 2765

Answers: 2

Read More
TRISAbits
TRISAbits

Reputation: 465

C++ Standard Layout and References

Score: 7

Views: 471

Answers: 1

Read More
jmishra
jmishra

Reputation: 2081

Standard Layout c++

Score: 20

Views: 4060

Answers: 1

Read More
spraff
spraff

Reputation: 33445

Why is C++11's POD "standard layout" definition the way it is?

Score: 56

Views: 11513

Answers: 6

Read More
M.M
M.M

Reputation: 141648

Does C++20 remove the requirement for class members to be in ascending order?

Score: 45

Views: 1699

Answers: 1

Read More
Brian Bi
Brian Bi

Reputation: 119467

Is being a POD type exactly equivalent to being a trivial, standard-layout type?

Score: 22

Views: 747

Answers: 2

Read More
Tristan Brindle
Tristan Brindle

Reputation: 16834

Why must members of standard layout classes have the same access control?

Score: 3

Views: 314

Answers: 1

Read More
PreviousPage 1Next