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

MAK
MAK

Reputation: 26586

Why is iostream::eof inside a loop condition (i.e. `while (!stream.eof())`) considered wrong?

Score: 694

Views: 101420

Answers: 5

Read More
hookenz
hookenz

Reputation: 38947

What is the order of evaluation in a member initializer list?

Score: 303

Views: 92638

Answers: 4

Read More
Alex Reynolds
Alex Reynolds

Reputation: 96976

What is a smart pointer and when should I use one?

Score: 2189

Views: 757159

Answers: 14

Read More
Ashwin Nanjappa
Ashwin Nanjappa

Reputation: 78538

What is a pointer to class data member "::*" and what is its use?

Score: 326

Views: 224524

Answers: 20

Read More
Nick Bolton
Nick Bolton

Reputation: 39670

Is the practice of returning a C++ reference variable evil?

Score: 415

Views: 404156

Answers: 17

Read More
Head Geek
Head Geek

Reputation: 39878

"std::endl" vs "\n"

Score: 733

Views: 294626

Answers: 12

Read More
Tony The Lion
Tony The Lion

Reputation: 63250

How does the compilation/linking process work?

Score: 534

Views: 311484

Answers: 5

Read More
einpoklum
einpoklum

Reputation: 132128

How can I obtain a C++ expression's type, at compile time (i.e. constexpr'ly)?

Score: 44

Views: 20698

Answers: 3

Read More
ultraman
ultraman

Reputation:

What is the difference between const int*, const int * const, and int * const?

Score: 1851

Views: 769390

Answers: 23

Read More
Krystian Dobkowski
Krystian Dobkowski

Reputation: 16583

Why should I use a pointer rather than the object itself?

Score: 1911

Views: 437082

Answers: 24

Read More
user965369
user965369

Reputation: 5743

What is "Argument-Dependent Lookup" (aka ADL, or "Koenig Lookup")?

Score: 234

Views: 46356

Answers: 4

Read More
Roger Lipscombe
Roger Lipscombe

Reputation: 91925

What are the rules about using an underscore in a C++ identifier?

Score: 1070

Views: 356176

Answers: 6

Read More
Skizz
Skizz

Reputation: 71100

What does the explicit keyword mean?

Score: 3733

Views: 1279092

Answers: 10

Read More
dicroce
dicroce

Reputation: 46820

What is move semantics?

Score: 2125

Views: 637955

Answers: 12

Read More
Prasoon Saurav
Prasoon Saurav

Reputation: 92884

What are sequence points, and how do they relate to undefined behavior?

Score: 1072

Views: 130144

Answers: 6

Read More
Siarhei Fedartsou
Siarhei Fedartsou

Reputation: 1873

Does std::list::remove method call destructor of each removed element?

Score: 29

Views: 26204

Answers: 6

Read More
Alok Save
Alok Save

Reputation: 206616

How should I write ISO C++ Standard conformant custom new and delete operators?

Score: 73

Views: 18352

Answers: 4

Read More
Kevin
Kevin

Reputation: 25947

How do I remove code duplication between similar const and non-const member functions?

Score: 326

Views: 59374

Answers: 22

Read More
Sarfaraz Nawaz
Sarfaraz Nawaz

Reputation: 361692

What is a lambda expression, and when should I use one?

Score: 1769

Views: 695390

Answers: 11

Read More
Frankomania
Frankomania

Reputation: 9327

What is object slicing?

Score: 927

Views: 279781

Answers: 17

Read More
PreviousPage 2Next