StackOverflow Questions for Tag: trivially-copyable

gexicide
gexicide

Reputation: 40068

Why is std::is_trivial deprecated in C++26?

Score: 21

Views: 636

Answers: 2

Read More
dwto
dwto

Reputation: 757

Bitwise swapping the internal representation of two simple objects, even if they are not of a trivially copyable type

Score: 7

Views: 172

Answers: 0

Read More
dwto
dwto

Reputation: 757

Implementing bitwise swap for MyString

Score: 3

Views: 133

Answers: 2

Read More
Vittorio Romeo
Vittorio Romeo

Reputation: 93304

`std::is_trivially_copyable` disagreement between GCC and Clang for type wrapper

Score: 6

Views: 177

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 131646

std::is_trivially_copyable is too strong, what shall I use instead?

Score: 3

Views: 598

Answers: 1

Read More
user24551355
user24551355

Reputation: 414

Which is faster? pass by const& or by value in C++ if the struct is simple?

Score: -1

Views: 135

Answers: 1

Read More
wohlstad
wohlstad

Reputation: 28094

Is std::atomic<bool> trivially copyable?

Score: 13

Views: 1733

Answers: 3

Read More
Leon
Leon

Reputation: 2055

C++ struct with anonymous union

Score: 1

Views: 134

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 131646

Do all special member functions need to be trivial for a class to be trivially copyable?

Score: 2

Views: 174

Answers: 2

Read More
laurisvr
laurisvr

Reputation: 2822

Which rules determine whether an object is trivially copyable

Score: 28

Views: 20060

Answers: 1

Read More
skypjack
skypjack

Reputation: 50550

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

Score: 136

Views: 25513

Answers: 1

Read More
Weijun Zhou
Weijun Zhou

Reputation: 4896

Object pointer (this) saved in the constructor for later use seems to have incorrect value

Score: 4

Views: 58

Answers: 0

Read More
wanghan02
wanghan02

Reputation: 1317

mutable data member, template constructor and trivially copy constructible

Score: 6

Views: 253

Answers: 2

Read More
wanghan02
wanghan02

Reputation: 1317

Class isn't trivially_copyable if a constraint on its assignment operator is not satisfied with clang 16

Score: 1

Views: 244

Answers: 1

Read More
o_oTurtle
o_oTurtle

Reputation: 1241

Why is a class trivially copyable with all private special member functions?

Score: 15

Views: 1530

Answers: 3

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
Home of the Brave
Home of the Brave

Reputation: 153

copy assignment operator with volatile qualifier

Score: 1

Views: 157

Answers: 0

Read More
cppbest
cppbest

Reputation: 249

Is std::istream_iterator<int> trivially copy constuctible?

Score: 1

Views: 93

Answers: 1

Read More
Myrddin Krustowski
Myrddin Krustowski

Reputation: 771

Trivially copyable class - what has changed in C++20?

Score: 6

Views: 1515

Answers: 3

Read More
Michele Piccolini
Michele Piccolini

Reputation: 2953

Trivial class that is not standard layout and vice versa

Score: 1

Views: 105

Answers: 0

Read More
PreviousPage 1Next