Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

what type is this c++

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

  void bar() const {
    // here `this` has `const ClassName *` type
  }
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #type
ADD COMMENT
Topic
Name
4+6 =