”@

Home 

c++ Programming Glossary: i.e

Detecting endianness programmatically in a C++ program

http://stackoverflow.com/questions/1001307/detecting-endianness-programmatically-in-a-c-program

on an Intel or PPC system and use exactly the same code i.e. no conditional compilation . c c algorithm endianness share..

In C++ source, what is the effect of extern “C”?

http://stackoverflow.com/questions/1041866/in-c-source-what-is-the-effect-of-extern-c

does not mangle the name so that client C code can link to i.e use your function using a 'C' compatible header file that contains..

Using std Namespace

http://stackoverflow.com/questions/1265039/using-std-namespace

function as though it was declared at the global scope i.e. at the same scope as int count 0 and hence causing the ambiguity...

throwing exceptions out of a destructor

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

std endl This basically boils down to Anything dangerous i.e. that could throw an exception should be done via public methods..

what is array decaying?

http://stackoverflow.com/questions/1461432/what-is-array-decaying

A C array declared as int numbers 5 cannot be re pointed i.e. you can't say numbers 0x5a5aff23. When you pass an array into.. which don't maintain the full functionality of an array i.e. sizeof but instead lead to decay . share improve this answer..

Programmatically find the number of cores on a machine

http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine

Linux Solaris AIX and Mac OS X for all OS releases 10.4 i.e. Tiger onwards per comments numCPU sysconf _SC_NPROCESSORS_ONLN..

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

The decision the rationale behind the name hiding i.e. why it actually was designed into C is to avoid certain counterintuitive.. to D foo int since int is a better match for integral zero i.e. NULL than any pointer type. So throughout the hierarchy calls..

Can I use a binary literal in C or C++?

http://stackoverflow.com/questions/2611764/can-i-use-a-binary-literal-in-c-or-c

it is 100 preprocessor driven. UPDATE To do the converse i.e. print out a number in binary form you can use the non portable..

Regular cast vs. static_cast vs. dynamic_cast

http://stackoverflow.com/questions/28002/regular-cast-vs-static-cast-vs-dynamic-cast

never really understood. I've obviously used regular casts i.e. MyClass m MyClass ptr all over the place but there seem to..

When and why will an OS initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete?

http://stackoverflow.com/questions/370195/when-and-why-will-an-os-initialise-memory-to-0xcd-0xdd-etc-on-malloc-free-new

and are good at finding bad addresses. Atypical values i.e. not too often are good since they typically cause early detection..

RAII and smart pointers in C++

http://stackoverflow.com/questions/395123/raii-and-smart-pointers-in-c

complexity and might get it wrong leading to a memory leak i.e. not deleting object even though it is no longer required. This..

std::wstring VS std::string

http://stackoverflow.com/questions/402283/stdwstring-vs-stdstring

I work with a char string it is natively encoded in UTF 8 i.e. Unicode string of chars . The following code #include cstring..

How can I add reflection to a C++ application?

http://stackoverflow.com/questions/41453/how-can-i-add-reflection-to-a-c-application

to be able to introspect a C class for its name contents i.e. members and their types etc. I'm talking native C here not..

What are access specifiers? Should I inherit with private, protected or public?

http://stackoverflow.com/questions/5447498/what-are-access-specifiers-should-i-inherit-with-private-protected-or-public

Base Class become Protected Members of the Derived Class. i.e. No change in the Access of the members. The access rules we..

What does T&& (double ampersand) mean in C++11?

http://stackoverflow.com/questions/5481539/what-does-t-double-ampersand-mean-in-c11

that are the result of an implicit conversion . i.e. float f 0f int i f is well formed because float is implicitly..

Where and why do I have to put the “template” and “typename” keywords?

http://stackoverflow.com/questions/610245/where-and-why-do-i-have-to-put-the-template-and-typename-keywords

And should it then assume that inUnion is a class template i.e. inUnion U names a type and not a function Background I implemented.. have destructors etc. I implemented this as a Russian doll i.e. Union T1 T2 T3 derives from UnionNode T1 UnionNode T2 UnionNode..

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

another handler or register no handler or not return i.e. terminate the program . If there is no new handler and the..

Throw keyword in function's signature (C++)

http://stackoverflow.com/questions/1055387/throw-keyword-in-functions-signature-c

good practice to signify this in the function's signature. I.e. bool some_func throw myExc ... if shit_happens throw myExc..

What is the advantage of using universal references in range-based for loops?

http://stackoverflow.com/questions/13130708/what-is-the-advantage-of-using-universal-references-in-range-based-for-loops

way unless you knew you needed to satisfy such a use case. I.e. I wouldn't do this gratuitously because it does cause people..

How to use SQLite in a multi-threaded application?

http://stackoverflow.com/questions/1680249/how-to-use-sqlite-in-a-multi-threaded-application

off a single thread to update a group of rows each time I.e. have some kind of poller thread which decides that I need to..

How to easily map c++ enums to strings

http://stackoverflow.com/questions/207976/how-to-easily-map-c-enums-to-strings

you can use them for any map or map like structure. I.e. it can also add entries to std unordered_map If you don't like..

Purpose of Unions in C and C++

http://stackoverflow.com/questions/2310483/purpose-of-unions-in-c-and-c

member ARGB components is actually undefined behaviour I.e. reading from a member of the union other than the one recently..

Unmangling the result of std::type_info::name

http://stackoverflow.com/questions/281818/unmangling-the-result-of-stdtype-infoname

function etc. but it's mangled. It's not very useful. I.e. typeid std vector int .name returns St6vectorIiSaIiEE . Is..

How to set a timeout on blocking sockets in boost asio?

http://stackoverflow.com/questions/291871/how-to-set-a-timeout-on-blocking-sockets-in-boost-asio

or set a timeout for the boost library functions I.e. I want to set a timeout on blocking socket in boost asio socket.read_some..

mmap() vs. reading blocks

http://stackoverflow.com/questions/45972/mmap-vs-reading-blocks

most of what you would do with mmap in the first place. I.e. for frequently accessed files you could just do std ifstream.read..

C++11 rvalues and move semantics confusion

http://stackoverflow.com/questions/4986673/c11-rvalues-and-move-semantics-confusion

1 2 3 4 5 return tmp std vector int rval_ref return_vector I.e. just as you would in C 03. tmp is implicitly treated as an..

Some clarification needed about synchronous versus asynchronous asio operations

http://stackoverflow.com/questions/5282659/some-clarification-needed-about-synchronous-versus-asynchronous-asio-operations

between synchronous and asynchronous operations. I.e. write or read vs async_write and async_read is that the former..

Is C# really slower than say C++?

http://stackoverflow.com/questions/5326269/is-c-sharp-really-slower-than-say-c

arbitrary computations to be carried out at compile time I.e. the template system is Turing complete . As such essentially..

What is the C++ iostream endl fiasco?

http://stackoverflow.com/questions/5492380/what-is-the-c-iostream-endl-fiasco

potentially making their program's performance abysmal. I.e. most people are taught that std endl is the canonical way to..

How can I use Standard Library (STL) classes in my dll interface or ABI?

http://stackoverflow.com/questions/5661738/how-can-i-use-standard-library-stl-classes-in-my-dll-interface-or-abi

It is after all called the Standard Template Library... I.e. one wants to provide an interface with these standard classes...

virtual function default arguments behaviour

http://stackoverflow.com/questions/6464404/virtual-function-default-arguments-behaviour

Default arguments are entirely compile time feature. I.e. the substitution of default arguments in place of missing arguments..

Are inline virtual functions really a non-sense?

http://stackoverflow.com/questions/733737/are-inline-virtual-functions-really-a-non-sense

object rather than a pointer or reference to an object. I.e. either with a local object a global static object or a fully..

Efficiently convert between Hex, Binary, and Decimal in C/C++

http://stackoverflow.com/questions/819487/efficiently-convert-between-hex-binary-and-decimal-in-c-c

in all 3 representations in the most efficient way. I.e. to implement the following 6 functions unsigned long int Binary2Dec..

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

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

API on top of that for fuller features at more expense. I.e. you need the strong exception guarantee fine you pay for it... be referenced by anywhere else in your entire program. I.e. this temporary is not possible . Now if your client has lied.. operator Class other assert this other ... return this I.e. If you are passed a self reference this is a bug on the part..

How to use SQLite in a multi-threaded application?

http://stackoverflow.com/questions/1680249/how-to-use-sqlite-in-a-multi-threaded-application

I'm using different transactions from each thread I.E. at the start of every thread's update cycle I have a begin...

C++ Predictable Rand() Output

http://stackoverflow.com/questions/17385541/c-predictable-rand-output

but now it's giving me constantly increasing numbers. I.E. 245 248 250 253 255 256 . I can understand that it is increasing..

Extending enums in C++?

http://stackoverflow.com/questions/1804840/extending-enums-in-c

enums in C Is there a way in C to extend inherit enums I.E enum Enum A B C enum EnumEx public Enum D E F or at least define..

C++ static virtual members?

http://stackoverflow.com/questions/1820477/c-static-virtual-members

but is there at least a way to acheive the same effect I.E struct Object struct TypeInformation static virtual const TypeInformation..

cmath header confusion

http://stackoverflow.com/questions/6215467/cmath-header-confusion

and cmath in C the only differences is the namespace. I.E. including math.h also gives you the overload. In theory in..

Custom Iterator in C++

http://stackoverflow.com/questions/839958/custom-iterator-in-c

of iterators I only need a FORWARD_ONLY iterator. I.E If this is my container typedef std vector TItem ItemVector..