Tagged: C++

0

initializer_list c++

If you set a list to an abject (or on auto keyword). CPP compiler assumes that the type of variable is initializer_list

0

Constexpr in C++

Constexpr is a new keyword for a C++ developer. Normally Const returns constant but in runtime. Constexpr generally is used in front of a function. The function should be able to calculate in compile...

0

Enums in C++

Here is the short note Enum class a new type, It is, of course, an enum bat using namespace. Type is the variable is char in here and the value of a type declared...

0

Smart pointers

There are two types of smart pointers. The unique pointer is a standard method which came from C++11 implementation that returns a pointer. A unique pointer does not to be shared by other parts...

0

Cast in C++

My short notes for casting in C++ Static Cast Checks in compile time that the types of the casing is possible and correct Reinterpret Cast Allows casting in different types. Even if the types...

0

Copy and Move Constructors

In the life of the C++ programmer, there are 2 major interesting constructor strategies. One of them is for copping an object and the other for moving data. The copy constructor is basic structure...

1

Delete, Default and Delegating Constructors

If you using modern C++ in your programing life there are three important concepts in your life to manage methods. If you compose a class without writing your own constructor (or copy constructor), The...

1

Why nonstatic data initialization is important

Before Modern C++ approach (C++11) we initialized our class something like that. But Modern C++ brings us this option. Initializing by using simple curly brackets creates a method which runs before everything includes constructor...

0

Hello world!

After the long break, I decided to reopen my personal blog. I used to publish my codes (and the notes especially in Turkish) before. Now I move to the UK and publishing my notes...