this type in c++ code example
Example 1: define type c++
typedef unsigned int u_int; //giving 'unsigned int' a name of u_int
Example 2: what type is this c++
class ClassName {
void foo() {
// here `this` has `ClassName *` type
}
void bar() const {
// here `this` has `const ClassName *` type
}
};