title: Write C++ container that fits neatly into STL
body: <p>I would like to write a container class in a style which fits very neatly into STL. It should look and behave as if it where a standard STL container.</p>
  
  <p>Is there a manual, report, Q&amp;A, etc., out there that describes how to write code with these set of features? Such a text should compromise design principles of the STL, pitfalls, coding conventions, and the like.</p>
  
  <p>PS: This question has been partly inspired by that one: <a href="https://stackoverflow.com/questions/6294603/c-vector-with-dynamic-item-size">C++ vector with dynamic item size</a> although that idea is not about template classes.</p>