I have a class which handles many of huge search process (Start, stop,... etc).
class CSearch
{
 public:
   CSearch();
  ~CSearch();
   bool Start();
   bool Stop();
};
I'm a little bit confused for calling Start function from this way:
CSearch search;
search.Start();
Or this:
std::unique_ptr<CSearch> search(new CSearch);
search->Start();
I have no idea about the diffrence Or it affect performance?
Which is better and why? (Question is not about the only unique_pointer)
 
     
     
    