-
Aktuelle Beiträge
Archiv
- März 2020 (1)
- Januar 2020 (1)
- November 2019 (1)
- Oktober 2019 (1)
- September 2019 (2)
- August 2019 (1)
- Juli 2019 (2)
- Juni 2019 (2)
- Mai 2019 (2)
- April 2019 (2)
- März 2019 (3)
- Februar 2019 (2)
- Januar 2019 (2)
- Dezember 2018 (3)
- November 2018 (2)
- Oktober 2018 (2)
- September 2018 (2)
- August 2018 (1)
- Juli 2018 (3)
- Juni 2018 (1)
- Mai 2018 (3)
- April 2018 (5)
- März 2018 (4)
- Februar 2018 (4)
- Januar 2018 (3)
- Dezember 2017 (4)
- November 2017 (4)
- Oktober 2017 (5)
- September 2017 (3)
- August 2017 (3)
- Juli 2017 (5)
- Juni 2017 (1)
- Mai 2017 (4)
- April 2017 (5)
- März 2017 (3)
- Februar 2017 (3)
- Januar 2017 (4)
- Dezember 2016 (2)
- November 2016 (2)
- Oktober 2016 (2)
- September 2016 (2)
- August 2016 (2)
- Juli 2016 (2)
- Juni 2016 (3)
- Mai 2016 (4)
- April 2016 (4)
- März 2016 (4)
- Februar 2016 (4)
- Januar 2016 (5)
- Dezember 2015 (4)
- November 2015 (5)
- Oktober 2015 (3)
- September 2015 (4)
- August 2015 (4)
- Juli 2015 (4)
- Juni 2015 (4)
- Mai 2015 (5)
- April 2015 (4)
- März 2015 (5)
- Februar 2015 (5)
- Januar 2015 (6)
- Dezember 2014 (5)
- November 2014 (7)
- Oktober 2014 (7)
- September 2014 (8)
- August 2014 (7)
- Juli 2014 (4)
- Juni 2014 (5)
- Mai 2014 (4)
- April 2014 (4)
- März 2014 (5)
- Februar 2014 (5)
- Januar 2014 (5)
- Dezember 2013 (5)
- November 2013 (6)
- Oktober 2013 (6)
- September 2013 (5)
- August 2013 (6)
- Juli 2013 (7)
- Juni 2013 (4)
- Mai 2013 (8)
- April 2013 (9)
- März 2013 (10)
- Februar 2013 (11)
- Januar 2013 (14)
Kategorien
Meta
Archiv der Kategorie: C++
Algorithms to use, find and check container elements
The STL algorithms offer a powerful way to solve some base programming use cases. If you know and use these algorithms you can write more clean, efficient and robust code. But unfortunately, it isn’t that easy to know or find … Weiterlesen
Veröffentlicht unter C++
1 Kommentar
Public vs. protected vs. private inheritance
In C++ you have three kind of inheritance: public, protected and private. From a technical point of view, they differ in the visibility of methods of the derived class and therefore they influence the interface of the derived class. So, … Weiterlesen
Veröffentlicht unter C++
Kommentar hinterlassen
Private inheritance creates a “is implemented in terms of” relationship
In C++ we have three kind of inheritance: public, protected and private. Within a previous article I have shown the concepts of public inheritance. By using public inheritance, you can implement your software according to the object-oriented paradigm and create … Weiterlesen
Veröffentlicht unter C++
1 Kommentar
Public inheritance always creates an “is-a” relationship
The object-oriented paradigm defines inheritance as a relationship between two classes, were the derived class is a kind of the base class. This logical concept is independent of the programming language. Therefore, object-oriented languages will offer different implementations of this … Weiterlesen
Veröffentlicht unter C++
3 Kommentare
logger class in C++
Within this article I want to show some base implementation techniques and demonstrate them in the context of a logging class. The logging class should able to write logging information into a file. The file access should be thread safe. … Weiterlesen
Veröffentlicht unter C++
Kommentar hinterlassen
int * const x; (const pointer vs. const data)
The example within the title shows a typical pointer declaration containing the const keyword: “int * const x;”. If you write or read such a declaration you may be confused and ask yourself whether the pointer or the data is … Weiterlesen
Veröffentlicht unter C++
Kommentar hinterlassen
Fast way to return a large object
Within this article I want to think about the question how we can move objects between different scopes without the need of expensive copying and without the need to use an error-prone pointer handling. To analyze this topic, we want … Weiterlesen
Veröffentlicht unter C++
Kommentar hinterlassen
Type Safety and Resource Safety in C++
If I should summarize the main advantages of C++ in one short sentence I would say: C++ is a completely type safe and resource safe language without performance loss. The type- and resource safety are two very powerful features if … Weiterlesen
Veröffentlicht unter C++
1 Kommentar
Arrays and inheritance, a source of errors
If you work with arrays of objects and offer some functions to execute on these arrays, it is common to pass an array pointer and the array size as function parameters. Arrays will often hold a huge amount of data. … Weiterlesen
Veröffentlicht unter C++
2 Kommentare
Exception-safe code
During the last years the manner we handle exceptions has fundamentally changed. If we look few years back we will find a lot of applications with exception handling in bigger context only. For example, a module executing a bigger task … Weiterlesen
Veröffentlicht unter C++
Kommentar hinterlassen