Answers for "what type is this c++"

C++
0

what type is this c++

class ClassName {
  void foo() {
    // here `this` has `ClassName *` type
  }

  void bar() const {
    // here `this` has `const ClassName *` type
  }
};
Posted by: Guest on May-18-2021

Browse Popular Code Answers by Language