ˇ@

Home 

c++ Programming Glossary: rationale

Copy a file in an sane, safe and efficient way

http://stackoverflow.com/questions/10195343/copy-a-file-in-an-sane-safe-and-efficient-way

open to.ogv O_WRONLY O_CREAT O_TRUNC 0644 struct required rationale function stat exists also struct stat stat_source fstat source..

std::function vs template

http://stackoverflow.com/questions/14677997/stdfunction-vs-template

as many constraints as possible at compile time . The rationale is simple if you can catch an error or a type mismatch even..

Why can you return from a non-void function without returning a value without producing a compiler error?

http://stackoverflow.com/questions/1610030/why-can-you-return-from-a-non-void-function-without-returning-a-value-without-pr

will be defined to 0 only in the main function. The rationale is that checking if every code path returns a value is quite..

Why does an overridden function in the derived class hide other overloads of the base class?

http://stackoverflow.com/questions/1628768/why-does-an-overridden-function-in-the-derived-class-hide-other-overloads-of-the

care to address the actual why question. The decision the rationale behind the name hiding i.e. why it actually was designed into..

Why should exceptions be used conservatively?

http://stackoverflow.com/questions/1744070/why-should-exceptions-be-used-conservatively

used rarely but never explain why. While that may be true rationale is normally a glib it's called an exception for a reason which.. special circumstances but I'm wondering what the consensus rationale is if such a thing exists . c exception share improve this..

Should operator<< be implemented as a friend or as a member function?

http://stackoverflow.com/questions/236801/should-operator-be-implemented-as-a-friend-or-as-a-member-function

do ostream operator ostream os return os paragraph What rationale should I base this decision on Note Paragraph to_str return..

What is the copy-and-swap idiom?

http://stackoverflow.com/questions/3279543/what-is-the-copy-and-swap-idiom

old data... delete mArray 2 mArray 0 2 see footnote for rationale ...and put in the new mSize other.mSize 3 mArray mSize new int..

Why does C++ support memberwise assignment of arrays within structs, but not generally?

http://stackoverflow.com/questions/3437110/why-does-c-support-memberwise-assignment-of-arrays-within-structs-but-not-gen

was mostly wondering about the philosophical or historical rationale behind the behavior but James McNellis 's reference to the related..

What's the rationale for null terminated strings?

http://stackoverflow.com/questions/4418708/whats-the-rationale-for-null-terminated-strings

the rationale for null terminated strings As much as I love C and C I can't..

C++: rationale behind hiding rule

http://stackoverflow.com/questions/4837399/c-rationale-behind-hiding-rule

rationale behind hiding rule What's the rationale behind the hiding rule.. rationale behind hiding rule What's the rationale behind the hiding rule in C class A void f int class B public.. all the three answers seem to be good and show different rationales for the hiding rule. I'm not sure about which answer I should..

Why unnamed namespace is a“ superior” alternative to static? [duplicate]

http://stackoverflow.com/questions/4977252/why-unnamed-namespace-is-a-superior-alternative-to-static

why unnamed namespace is superior alternative What is the rationale I knew it for a long time as to what the Standard says but never..

Why does C++0x's lambda require “mutable” keyword for capture-by-value, by default?

http://stackoverflow.com/questions/5501959/why-does-c0xs-lambda-require-mutable-keyword-for-capture-by-value-by-defau

parameter passing to named functions. What's the rationale behind I was under the impression that the whole point of capture..

Accessing inherited variable from templated parent class

http://stackoverflow.com/questions/605497/accessing-inherited-variable-from-templated-parent-class

C compiler obey the standard or not If they do what is the rationale behind that inheriting class is not able to see a protected..

Advice on a better way to extend C++ STL container with user-defined methods

http://stackoverflow.com/questions/679520/advice-on-a-better-way-to-extend-c-stl-container-with-user-defined-methods

from C STL container and add my own methods to it. The rationale was such that to the clients it will look act a regular list..

Why are references not reseatable in C++

http://stackoverflow.com/questions/728233/why-are-references-not-reseatable-in-c

meaningless. I restate my question like this What was the rationale behind the 'a reference is the object' design Why was it considered..

Using local classes with STL algorithms

http://stackoverflow.com/questions/742607/using-local-classes-with-stl-algorithms

know where in the standard is the restriction What is the rationale for disallowing local types EDIT Since C 11 it is legal to use..

Differences between dynamic memory and “ordinary” memory

http://stackoverflow.com/questions/1021138/differences-between-dynamic-memory-and-ordinary-memory

memory. a is a local variable and so it is in main 's box Rationale for dynamic memory allocation Sure using dynamically allocated..

Extending the C++ Standard Library by inheritance?

http://stackoverflow.com/questions/1073958/extending-the-c-standard-library-by-inheritance

what the intended usage is. Maybe there should be a C Rationale document that sits alongside the language standard. In any case..

Can you start a class name with a numeric digit?

http://stackoverflow.com/questions/15285787/can-you-start-a-class-name-with-a-numeric-digit

. We can find a rationale for why these are reserved from Rationale for International Standard ”Programming Languages ”C which says..

Do pointers to string literals remain valid after a function returns?

http://stackoverflow.com/questions/1588976/do-pointers-to-string-literals-remain-valid-after-a-function-returns

changed from śarray of wchar_t to śarray of const wchar_t. p Rationale This avoids calling an inappropriate overloaded function which..

Why is Math.pow(0, 0) === 1?

http://stackoverflow.com/questions/19955968/why-is-math-pow0-0-1

pow 0 0 result in 1 is useful for many applications as the Rationale for International Standard ”Programming Languages ”C states in..

Is there any advantage to using C++/CLI over either standard C++ or C#?

http://stackoverflow.com/questions/297323/is-there-any-advantage-to-using-c-cli-over-either-standard-c-or-c

that Herb Sutter probably gives the best overview A Design Rationale for C CLI If you want to know why you might want to use native..

initializing char arrays in a way similar to initializing string literals

http://stackoverflow.com/questions/3216462/initializing-char-arrays-in-a-way-similar-to-initializing-string-literals

that would allow it for C . The C Standard further says Rationale When these non terminated arrays are manipulated by standard..

Rationale behind return 0 as default value in C/C++

http://stackoverflow.com/questions/329950/rationale-behind-return-0-as-default-value-in-c-c

behind return 0 as default value in C C Is there a reason why..

Rationale behind static const (non-integral) member initialization syntax?

http://stackoverflow.com/questions/3575580/rationale-behind-static-const-non-integral-member-initialization-syntax

behind static const non integral member initialization syntax..

Rationale of enforcing some operators to be members

http://stackoverflow.com/questions/3938036/rationale-of-enforcing-some-operators-to-be-members

of enforcing some operators to be members There are 4 operators..

Does the C++ standard mandate poor performance for iostreams, or am I just dealing with a poor implementation? [closed]

http://stackoverflow.com/questions/4340396/does-the-c-standard-mandate-poor-performance-for-iostreams-or-am-i-just-deali

and how much of the overhead is mandated by the standard. Rationale for this test A number of people have correctly pointed out..

const in C vs const in C++

http://stackoverflow.com/questions/6087729/const-in-c-vs-const-in-c

be initialized in C but can be left uninitialized in C Rationale A const object cannot be assigned to so it must be initialized..

What is the meaning of double curly braces initializing a C-struct?

http://stackoverflow.com/questions/6251160/what-is-the-meaning-of-double-curly-braces-initializing-a-c-struct

It initialises all fields of the POD structure to 0. Rationale const SomeStruct init Value Initialises the first field of SomeStruct..

Why this way of declaring function is obsolete in C++?

http://stackoverflow.com/questions/6329956/why-this-way-of-declaring-function-is-obsolete-in-c

old style syntax is allowed but deprecated as obsolescent. Rationale Prototypes are essential to type safety. Effect on original..

polymorphic C++ references

http://stackoverflow.com/questions/7192069/polymorphic-c-references

is a better in the sense of cleaner way. Is it just me Rationale It would be great if I didn't need a new at all but when declaring..

Creating Library with backward compatible ABI that uses Boost

http://stackoverflow.com/questions/836875/creating-library-with-backward-compatible-abi-that-uses-boost

all boost symbols in the source to some custom symbol. Rationale simplification of build process independent of compiler visibility..

const and global

http://stackoverflow.com/questions/9032475/const-and-global

internal linkage while in C it would have external linkage Rationale Because const objects can be used as compile time values in..

Move assignment operator and `if (this != &rhs)`

http://stackoverflow.com/questions/9322174/move-assignment-operator-and-if-this-rhs

no. My personal opinion is no you don't need this check. Rationale When an object binds to an rvalue reference it is one of two..

Why does const imply internal linkage in C++, when it doesn't in C?

http://stackoverflow.com/questions/998425/why-does-const-imply-internal-linkage-in-c-when-it-doesnt-in-c

internal linkage while in C it would have external linkage Rationale Because const objects can be used as compile time values in..