Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about C++, a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.
2
votes
Why declare a variable in one line, and assign to it in the next?
Pros for localising variable definitions and their meaningful initialisation:
if variables are habitually assigned a meaningful value when they first appear in the code (another perspective on the s …
5
votes
The "blub paradox" and c++
Coroutines are an immensely useful language feature that underpin a lot of the more tangible benefits of other languages over C++. They basically provide extra stacks so functions can be interrupted …
47
votes
When NOT to use virtual destructors?
If you add a virtual destructor to a class:
in most (all?) current C++ implementations, every object instance of that class needs to store a pointer to the virtual dispatch table for the runtime typ …
2
votes
Why do we have postfix increment?
Amongst the subtle elements of good programming are localisation and minimalism:
putting variables in a minimal scope of use
using const when write access isn't required
etc.
In the same spirit, x …