c++ Programming Glossary: intent
What's “wrong” with C++ wchar_t and wstrings? What are some alternatives to wide characters? http://stackoverflow.com/questions/11107608/whats-wrong-with-c-wchar-t-and-wstrings-what-are-some-alternatives-to-wide might wonder what it's good for if not that. The original intent and purpose of wchar_t was to make text processing simple by.. for certain characters another clear violation of the intent of wchar_t. Although it's arguable that a character being representable..
Accessing inactive union member - undefined? http://stackoverflow.com/questions/11373203/accessing-inactive-union-member-undefined of an implementation deļ¬ned set of values. 42 42 The intent is that the memory model of C is compatible with that of ISO..
#pragma once vs include guards? http://stackoverflow.com/questions/1143936/pragma-once-vs-include-guards with it as it is more simple to understand your exact intent. #pragma once is less prone to making mistakes and it is less..
Use of 'const' for function parameters http://stackoverflow.com/questions/117293/use-of-const-for-function-parameters really matter although it can be safer as it signals intent within the function. Its really a judgement call. I do tend..
Why does the default parameterless constructor go away when you create one with parameters http://stackoverflow.com/questions/11792207/why-does-the-default-parameterless-constructor-go-away-when-you-create-one-with
What is the difference between NULL, '\0' and 0 http://stackoverflow.com/questions/1296843/what-is-the-difference-between-null-0-and-0 unadorned 0 integer constant the only difference is in the intent that it conveys to a human reader I'm using this as a null character...
C++ sorting and keeping track of indexes http://stackoverflow.com/questions/1577475/c-sorting-and-keeping-track-of-indexes r return l.first r.first forgetting the syntax here but intent is clear enough The result of std sort on v_prime using that..
What is the difference between static_cast<> and C style casting? http://stackoverflow.com/questions/1609163/what-is-the-difference-between-static-cast-and-c-style-casting benefit is that the 4 different C style casts express the intent of the programmer more clearly. When writing C I'd pretty much..
Examples of good gotos in C or C++ http://stackoverflow.com/questions/245742/examples-of-good-gotos-in-c-or-c I was joking. Summary label changed from original to make intent even clearer infinite_loop code goes here goto infinite_loop.. degenerate always true condition. The label documents the intent without extra comments. The reader doesn't have to scan the..
Why do we actually need Private or Protected inheritance in C++? http://stackoverflow.com/questions/374399/why-do-we-actually-need-private-or-protected-inheritance-in-c However this way of doing has several disadvantages your intent is much less clear it can lead to abusive multiple inheritance..
Combining C++ and C - how does #ifdef __cplusplus work? http://stackoverflow.com/questions/3789340/combining-c-and-c-how-does-ifdef-cplusplus-work lot of legacy C code. We've started writing in C with the intent to eventually convert the legacy code as well. I'm a little..
Trouble with inheritance of operator= in C++ http://stackoverflow.com/questions/3882186/trouble-with-inheritance-of-operator-in-c of the objects involved. But apparently that is your intent. Alternatively in cases like this you can always work around..
mmap() vs. reading blocks http://stackoverflow.com/questions/45972/mmap-vs-reading-blocks be substantially faster than read . That wasn't exactly my intent even if my words could be construed that way. Ultimately my..
Calculating size of an array http://stackoverflow.com/questions/720077/calculating-size-of-an-array C pass the length in with the array not that useful if the intent of the function is to actually work out the array size . pass..
Convert between string, u16string & u32string http://stackoverflow.com/questions/7232710/convert-between-string-u16string-u32string might wonder what it's good for if not that. The original intent and purpose of wchar_t was to make text processing simple by..
Can standard container templates be instantiated with incomplete types? http://stackoverflow.com/questions/8329826/can-standard-container-templates-be-instantiated-with-incomplete-types non template class. Anyway that article establishes design intent pretty well so I guess my nitpick about being under the subheading.. ambiguous but according to this article the standard's intent seems not to allow recursive data type using standard containers...
Should I use an exception specifier in C++? http://stackoverflow.com/questions/88573/should-i-use-an-exception-specifier-in-c
|