// file      : Utility/ReferenceCounting/Interface.tpp
// author    : Boris Kolpackov <boris@kolpackov.net>
// copyright : Copyright (c) 2002-2003 Boris Kolpackov
// license   : http://kolpackov.net/license.html

namespace Utility
{
  namespace ReferenceCounting
  {
    template <typename Type>
    inline Type*
    add_ref (Type* ptr)
    {
      if (ptr != 0) ptr->add_ref ();
      return ptr;
    }
  }
}
//$Id: Interface.tpp 80826 2008-03-04 14:51:23Z wotte $
