¡@

Home 

c++ Programming Glossary: reusable

Why is the C++ STL is so heavily based on templates? (and not on *interfaces*)

http://stackoverflow.com/questions/1039853/why-is-the-c-stl-is-so-heavily-based-on-templates-and-not-on-interfaces

it is clumsy and verbose and it doesn't really promote reusable code or modularity. That is why the C community is today far..

Pass an array to a wrapped function as pointer+size or range

http://stackoverflow.com/questions/11584599/pass-an-array-to-a-wrapped-function-as-pointersize-or-range

advantages of not making excessive copies and being more reusable. Yet another alternative approach to wrapping would be to write..

Why use iterators instead of array indices?

http://stackoverflow.com/questions/131241/why-use-iterators-instead-of-array-indices

Enumerate over an enum in C++

http://stackoverflow.com/questions/1390703/enumerate-over-an-enum-in-c

Now Color is a constant bidirectional iterator. Here is a reusable class i coded while doing it manually above. I noticed it could..

How to pass structure as pointer in C dll from C#

http://stackoverflow.com/questions/15197195/how-to-pass-structure-as-pointer-in-c-dll-from-c-sharp

What are some best practices for OpenGL coding (esp. w.r.t. object orientation)?

http://stackoverflow.com/questions/166356/what-are-some-best-practices-for-opengl-coding-esp-w-r-t-object-orientation

background so I'm trying to put everything we do into reusable classes. I've had good success creating a camera class since..

runtime determine type for C++

http://stackoverflow.com/questions/1984492/runtime-determine-type-for-c

function to make the common code for various types reusable. b or one may use abstract class type and polymorphism to indirectly..

Is there support in C++/STL for sorting objects by attribute?

http://stackoverflow.com/questions/2202731/is-there-support-in-c-stl-for-sorting-objects-by-attribute

While it is quite more verbose the first time it is reusable. Generic member less than template typename T typename M typename..

Callback functions in c++

http://stackoverflow.com/questions/2298242/callback-functions-in-c

to which it is passed. This is very useful for making reusable software. For example many operating system APIs such as the..

Crossplatform iPhone / Android code sharing

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

project knowing ahead of time there is a large chunk of reusable logic that needs to run on each device. Existing iPhone code.. apps would just plug into the magical cloud and all the reusable logic would be up in Google App Engine or some web services..

A C++ iterator adapter which wraps and hides an inner iterator and converts the iterated type

http://stackoverflow.com/questions/470835/a-c-iterator-adapter-which-wraps-and-hides-an-inner-iterator-and-converts-the

can be used to fetch IInterface . MagicIterator has to be reusable with several classes which resemble Container but might internally..

Multithreading in c++

http://stackoverflow.com/questions/4768294/multithreading-in-c

Polymorphism in c++

http://stackoverflow.com/questions/5854581/polymorphism-in-c

using unambiguous terminology can we make this code reusable for other types or can we use virtual dispatch rather than can..

How to shuffle a std::vector in C++?

http://stackoverflow.com/questions/6926433/how-to-shuffle-a-stdvector-in-c

to shuffle a std vector in C I am looking for a generic reusable way to shuffle a std vector in C . This is how I currently do..

C++, C# and JavaScript on WinRT [closed]

http://stackoverflow.com/questions/7466303/c-c-sharp-and-javascript-on-winrt

or C CX. Existing .NET libraries may or may not be readily reusable depending on what classes in .NET Framework they rely on components.. written for Silverlight or WP7 are most likely to be reusable with no or minimal changes while components written for .NET.. JS or .NET. Existing C libraries may or may not be readily reusable depending on which APIs they use those that relies strictly..

Are there any concurrent containers in C++11?

http://stackoverflow.com/questions/7817364/are-there-any-concurrent-containers-in-c11

would annihilate performance. As a general purpose highly reusable library it wouldn ™t actually provide correctness either the..

Is there a standard C++ equivalent of IEnumerable<T> in C#?

http://stackoverflow.com/questions/8764643/is-there-a-standard-c-equivalent-of-ienumerablet-in-c

why C# only supports dynamic polymorphism. So to create a reusable algorithm you need an interface which all iterators will implement...