SharedResourcePointer::get vs getObject()

/** Returns the shared object. */
    SharedObjectType& get() const noexcept              { return *sharedObject; }

/** Returns the object that this pointer references.
    The pointer returned may be zero, of course.
    SharedObjectType& getObject() const noexcept        { return *sharedObject; }

Why have both methods that do the same thing?


Can't remember, but it'll either be to provide backwards-compatibility with old code, or so that the class can be used by templated code that expects one or other method definitions to be present.