title: How to represent shared objects in UML?
body: <p>To design my code I am drawing some UML Class diagram.
  I have some shared objects and I am wondering how that should be drawn since the ownership of these objects is really shared.
  To be more specific here a C++ example of what is happening:</p>
  
  <pre><code>class A
  {
  public:
    A(){
      std::shared_ptr&lt;CSharedObj&gt; sharedObj = std::make_shared&lt;CSharedObj&gt;;
      mB = B(sharedObj);
    }
  private:
    B mB;
  };
  
  class B
  {
  public:
    B(std::shared_ptr&lt;CSharedObj&gt;);
  private:
    std::shared_ptr&lt;CSharedObj&gt; mSharedObj;
  };
  
  class CSharedObj
  {
  public:
    CSharedObj();
  };
  </code></pre>
  
  <p>How do I represent in a class diagram the relationship between these 3 classes?</p>