/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef SELF_REF_H #define SELF_REF_H
#include"mozilla/Attributes.h"
namespace mozilla {
template <class T> class SelfReference {
public:
SelfReference() : mHeld(false) {}
~SelfReference() {
NS_ASSERTION(!mHeld, "Forgot to drop the self reference?");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.