StackOverflow Questions for Tag: effective-c%2B%2B

kwunlyou
kwunlyou

Reputation: 77

static_cast derived this object to base class in C++

Score: 1

Views: 8912

Answers: 3

Read More
Enlico
Enlico

Reputation: 28384

What is the "source object is lvalue" scenario, mentioned in EMC++, where move semantics offer no efficiency gain

Score: 3

Views: 141

Answers: 3

Read More
Dusan
Dusan

Reputation: 95

C++ - make_shared when custom new and delete operators are defined

Score: 0

Views: 684

Answers: 1

Read More
user3846623
user3846623

Reputation: 39

Returning local variables in C++ (Rule 21 in Effective C++, 3rd edition)

Score: 1

Views: 446

Answers: 4

Read More
jared jacobson
jared jacobson

Reputation: 159

Is overloading on universal references now much safer with concepts in c++ 20

Score: 7

Views: 791

Answers: 2

Read More
Yu Ding
Yu Ding

Reputation: 41

Initializer in braces and parentheses - From Item 7 in Modern Effective C++

Score: 1

Views: 126

Answers: 1

Read More
Zebartin
Zebartin

Reputation: 124

Effective C++ (3rd edition) Item 4 code layout

Score: 1

Views: 288

Answers: 1

Read More
kodu
kodu

Reputation: 2386

Can I cache after using std::make_shared?

Score: 1

Views: 107

Answers: 1

Read More
Sapo
Sapo

Reputation: 3

Recursive constexpr function

Score: 0

Views: 526

Answers: 1

Read More
Enlico
Enlico

Reputation: 28384

What does it mean that the emplacement function adds a new element to a container via construction in place istead of via assignment?

Score: 1

Views: 253

Answers: 1

Read More
Enlico
Enlico

Reputation: 28384

Confusion about the different efficiency between emplacement and insertion for containers not allowing duplicates

Score: 0

Views: 64

Answers: 1

Read More
Enlico
Enlico

Reputation: 28384

What would a default lambda capture mode via init capture be like?

Score: 1

Views: 4285

Answers: 3

Read More
Enlico
Enlico

Reputation: 28384

Understanding comment from the errata about Item 41 of EMC++

Score: 3

Views: 90

Answers: 1

Read More
Enlico
Enlico

Reputation: 28384

Understanding of Scott Meyers' third example of std::weak_ptr

Score: 5

Views: 515

Answers: 2

Read More
Ming
Ming

Reputation: 497

Template in C++, why have to use enum

Score: 9

Views: 1825

Answers: 5

Read More
Mario
Mario

Reputation: 811

Why should I prefer the "explicitly typed initializer" idiom over explicitly giving the type

Score: 47

Views: 3015

Answers: 4

Read More
sud
sud

Reputation: 395

Is it appropriate to set a value to a "const char *" in the header file

Score: 18

Views: 25077

Answers: 3

Read More
curlywei
curlywei

Reputation: 720

About std::cout, why use "extern" rether than "singleton pattern"

Score: 1

Views: 751

Answers: 2

Read More
Dinushan
Dinushan

Reputation: 2077

Why is argc not a constant?

Score: 106

Views: 9385

Answers: 7

Read More

store newed Objects in smart pointers in standalone statement

Score: 0

Views: 51

Answers: 0

Read More
PreviousPage 1Next