class Foo{
 void function(){
  hoge.exe();
 }
private:
 Hoge hoge;
}



class Foo{
 void function(Hoge& hoge){
  hoge.exe();
 }
}

どっちが最適化かかりやすい?