Is it possible to avoid repeating the class name in the implementation file?

后端 未结 8 2022
迷失自我
迷失自我 2020-11-27 21:39

Is there a way to avoid the Graph:: repetition in the implementation file, yet still split the class into header + implementation? Such as in:

Header Fi

8条回答
  •  庸人自扰
    2020-11-27 21:51

    No, there is no way to avoid it. Otherwise, how would you know if a given function definition is for a class function or for a static function?

提交回复
热议问题