CHROMA
Classes | Namespaces
handle.h File Reference

Class for counted reference semantics. More...

#include "chromabase.h"
#include <iostream>

Go to the source code of this file.

Classes

class  Chroma::Handle< T >
 Class for counted reference semantics. More...
 

Namespaces

 Chroma
 Asqtad Staggered-Dirac operator.
 

Detailed Description

Class for counted reference semantics.

Holds and object, and deletes it when the last Handle to it is destroyed

Code from * "The C++ Standard Library - A Tutorial and Reference" by Nicolai M. Josuttis, Addison-Wesley, 1999.

An almost identical version is in Stroustrup, "C++ Programming Language", 3rd ed., Section 25.7. The names used there are used for this class.

Definition in file handle.h.