¡@

Home 

c++ Programming Glossary: effective

What is a “translation unit” in C++

http://stackoverflow.com/questions/1106149/what-is-a-translation-unit-in-c

in C Hello everybody I am reading at the time the Effective C written by Meyers and came across the term translation unit..

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

http://stackoverflow.com/questions/123758/how-do-i-remove-code-duplication-between-similar-const-and-non-const-member-func

Function on p. 23 in Item 3 Use const whenever possible in Effective C 3d ed by Scott Meyers ISBN 13 9780321334879. Here's Meyers'..

throwing exceptions out of a destructor

http://stackoverflow.com/questions/130117/throwing-exceptions-out-of-a-destructor

has an excellent article about the subject in his book Effective C Edit Apparently also in More Effective C Item 11 Prevent exceptions.. in his book Effective C Edit Apparently also in More Effective C Item 11 Prevent exceptions from leaving destructors share..

Namespace + functions versus static methods on a class

http://stackoverflow.com/questions/1434937/namespace-functions-versus-static-methods-on-a-class

Oriented code Scott Meyers wrote a whole Item for his Effective C book on this topic Prefer non member non friend functions..

How is std::string implemented?

http://stackoverflow.com/questions/1466073/how-is-stdstring-implemented

can make for very difficult reading. Scott Meyer's book Effective STL has a chapter on std string implementations that's a decent..

How to downsize std::vector?

http://stackoverflow.com/questions/253157/how-to-downsize-stdvector

space c stl vector share improve this question Effective STL by Scott Meyers Item 17 Use the swap trick to trim excess..

Is it better in C++ to pass by value or pass by constant reference?

http://stackoverflow.com/questions/270408/is-it-better-in-c-to-pass-by-value-or-pass-by-constant-reference

best practice to pass by const ref. Scott Meyers in Effective C recommends that you use pass by const ref for all types except..

What C++ pitfalls should I avoid? [closed]

http://stackoverflow.com/questions/30373/what-c-pitfalls-should-i-avoid

in the language. Some excellent books on this subject are Effective C Scott Meyers More Effective C Scott Meyers C Coding Standards.. books on this subject are Effective C Scott Meyers More Effective C Scott Meyers C Coding Standards Sutter Alexandrescu C FAQs..

C++ cast syntax styles

http://stackoverflow.com/questions/32168/c-cast-syntax-styles

true even for types that define custom constructors but in Effective C Meyers argues that even in those cases you should refrain..

Why is there no call to the constructor?

http://stackoverflow.com/questions/3810570/why-is-there-no-call-to-the-constructor

vexing parse as others have noted . A great example is in Effective STL Item 6 on page 33. In 12th printing September 2009. Specifically..

C++ - enum vs. const vs. #define

http://stackoverflow.com/questions/4767667/c-enum-vs-const-vs-define

What C++ Smart Pointer Implementations are available?

http://stackoverflow.com/questions/5026197/what-c-smart-pointer-implementations-are-available

understanding and assumptions are based on Herb Sutter's Effective Use of auto_ptr and I do use it regularly although not always..

Multithreading reference?

http://stackoverflow.com/questions/601558/multithreading-reference

Variables Threading Building Blocks.org Sutter ™s Mill Effective Concurrency Understanding Parallel Performance Sutter ™s Mill.. Understanding Parallel Performance Sutter ™s Mill Effective Concurrency Use Threads Correctly Isolation Asynchronous Messages..

Why would one replace default new and delete operators?

http://stackoverflow.com/questions/7149461/why-would-one-replace-default-new-and-delete-operators

The answer is based on lessons from Scott Meyers' More Effective C . Note This is meant to be an entry to Stack Overflow's C..

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

http://stackoverflow.com/questions/7194127/how-should-i-write-iso-c-standard-conformant-custom-new-and-delete-operators

The answer is based on learnings from Scott Meyers' More Effective C and the ISO C Standard. c delete operator overloading new..

Singleton: How should it be used

http://stackoverflow.com/questions/86582/singleton-how-should-it-be-used

I like Scott Myers handling of the subject in his books Effective C Good Situations to use Singletons not many Logging frameworks..

Problems with Singleton Pattern

http://stackoverflow.com/questions/1392315/problems-with-singleton-pattern

but once you accept a paremeter you can no longer effective unit teest. Further you can't stub out the singleton as effectively.. unit teest. Further you can't stub out the singleton as effectively and your use of mock objects becomes difficult to use there..

Boost advocacy - help needed

http://stackoverflow.com/questions/1437053/boost-advocacy-help-needed

is Please provide me with what you consider to be the most effective arguments of why entire Boost or some specific parts of it should..

Determining 32 vs 64 bit in C++

http://stackoverflow.com/questions/1505582/determining-32-vs-64-bit-in-c

32 64 bit across the major compilers. I've found the most effective way to do this is the following. First I pick my own representation...

How to create minidump for my process when it crashes?

http://stackoverflow.com/questions/1547211/how-to-create-minidump-for-my-process-when-it-crashes

Or do I have to create minidump programmatically. How effective are minidumps while investigating a crash I'm using Windows.. MiniDumpWriteDump see MSDN on MiniDumpWriteDump . How effective such dumps are depends very much on the application. Sometimes..

Most effective way for float and double comparison

http://stackoverflow.com/questions/17333/most-effective-way-for-float-and-double-comparison

effective way for float and double comparison What would be the most..

mixing cout and printf for faster output

http://stackoverflow.com/questions/1924530/mixing-cout-and-printf-for-faster-output

seems to be quite a bit of disagreement over which is most effective. I decided to write a quick test program to get at least some..

Coding Practices which enable the compiler/optimizer to make a faster program

http://stackoverflow.com/questions/2074099/coding-practices-which-enable-the-compiler-optimizer-to-make-a-faster-program

messing around with restrict'ed pointers but it's just as effective and much clearer to do this void DoSomethingFaster const Foo..

Crossplatform iPhone / Android code sharing

http://stackoverflow.com/questions/2380258/crossplatform-iphone-android-code-sharing

iPhone Android code sharing Simply put What is the most effective way to share reuse code between iPhone and Android builds The..

How to replace all occurrences of a character in string?

http://stackoverflow.com/questions/2896600/how-to-replace-all-occurrences-of-a-character-in-string

all occurrences of a character in string What is the effective way to replace all occurrences of a character with another character..

what's the easiest way to generate xml in c++?

http://stackoverflow.com/questions/303371/whats-the-easiest-way-to-generate-xml-in-c

this question Some may declare me an XML heretic but one effective way is to just generate it with your favorite string output..

Beyond Stack Sampling: C++ Profilers

http://stackoverflow.com/questions/4394606/beyond-stack-sampling-c-profilers

solid results. GProf Requires GCC to be even moderately effective. VTune VTune's W7 support borders on criminal. Otherwise excellent..

Use of typename keyword with typedef and new

http://stackoverflow.com/questions/4421306/use-of-typename-keyword-with-typedef-and-new

different but much like this too. That's a simple and effective parse. Same argument holds true for new as well. I tend to agree..

Elegant ways to count the frequency of words in a file

http://stackoverflow.com/questions/4888879/elegant-ways-to-count-the-frequency-of-words-in-a-file

the frequency of words in a file What are the elegant and effective ways to count the frequency of each english word in a file ..

Dealing with accuracy problems in floating-point numbers

http://stackoverflow.com/questions/590822/dealing-with-accuracy-problems-in-floating-point-numbers

accuracy share improve this question A very simple and effective way to round a floating point number to an integer int rounded..

Protecting executable from reverse engineering?

http://stackoverflow.com/questions/6481668/protecting-executable-from-reverse-engineering

disassemblers debuggers etc is both likely to be more effective and also more intellectually satisfying than just generating..

Switching from C# to C++. Any must-reads? [closed]

http://stackoverflow.com/questions/68084/switching-from-c-sharp-to-c-any-must-reads

a suitable book for new programmers but I found it quite effective as programmer who was experienced in other languages and didn't..

String to enum in C++

http://stackoverflow.com/questions/726664/string-to-enum-in-c

want to assign the read value to an enum. What is the most effective way to do so It doesn't need to be the simplest approach. c..

Should we still be optimizing “in the small”?

http://stackoverflow.com/questions/763656/should-we-still-be-optimizing-in-the-small

already been made. Now the question is what is the most effective way to do it. anecdote I once reviewed a requirements spec that..