When do I need the headers for lib files? You need them during compilation if you build against libraries. You
Continue readingCategory: Programming
Position of const (C++)
“West-Const vs. East-Const” West-Const (The common one) int * num = new int(42); // Mutable ptr to a mutable int
Continue readingstd::recursive_mutex (C++)
The std::mutex is a non-recursive mutex and therefore can’t be locked again from the same thread before getting unlocked. This
Continue readingMain thread vs. Worker thread(s)
1. Main thread – Gets created during startup – It’s possibly the only thread – Normally sets up the app/program
Continue readingDoes Java have pointers?
Most guys would say “No, but C++ has pointers” and they are right, but not in the way they assume
Continue readingMove semantics (C++)
Since C++11 we can now use move semantics (move constructor, move assignment operator). They provide a perfomance boost over copy
Continue readingParameter handling (REST)
Path-Param … Gets specified in the URL-Path to move down the hierarchy. Query-Param … Gets specified behind the URL-Path to
Continue readingInteger overflow (C++)
Unsigned integer Range: [0,255] Binary: 00000000 =++=> 00000001 =++=> … =++=> 11111111 Hex: 0x00 =++=> 0x01 =++=> … =++=> 0xFF
Continue readingLayout of std::vector (libstdc++)
Source code Analysis Layout |——————————–| | vector vec | | 1 | 2 | 3 | 4 | 5 |
Continue readingBit operations (C++)
Set a bit value |= 1
Continue reading