const class& object (1) 썸네일형 리스트형 (const MyClass& object) VS (MyClass& object) If you want to pass class instances (objects), you either use void function(const MyClass& object){ // do something with object } or void process(MyClass& object_to_be_changed){ // change member variables } On the other hand if you want to "pass" the class itself template void function_taking_class(){ // use static functions of AnyClass AnyClass::count_instances(); // or create an object of AnyC.. 이전 1 다음