title: Overhead of C++ inheritance with no virtual functions
body: <p>In C++, what's the overhead (memory/cpu) associated with inheriting a base class that has no virtual functions? Is it as good as a straight up copy+paste of class members?</p>
  
  <pre><code>class a
  {
  public:
      void get();
  protected:
      int _px;
  }
  
  class b : public a
  {
  
  }
  </code></pre>
  
  <p>compared with</p>
  
  <pre><code>class a
  {
  public:
      void get();
  protected:
      int _px;
  }
  
  class b
  {
  public:
      void get();
  protected:
      int _px;
  
  }
  </code></pre>