Define a way other than using the keyword inline to make a function inline.

One define the the function inside the class declaration. It means instead for define outside the class as
void Class_name::Function_name(){}

declare as follow

class {
void Function_name(){}

This will make functions inline.( depending on compilers decision whether to treat it as inline or not).

1 comment:

deepesh said...

scope resolution operator is used to when the local variable is replacing the scope of global variable but u still want to use global variable.scope resolution operator is used to differentiate the scope of variable