rcolyer.net
RC Lib  Version 202403231100
Classes | Namespaces | Functions
RevPtr.h File Reference

A reference counting pointer that revokes (NULLs) all copies when one set to AutoRevoke(true) leaves scope. More...

#include "Types.h"
#include "Errors.h"
#include "Macros.h"
#include <iostream>
#include <atomic>
#include "PtrSharedCommon.h"
#include "PtrCommon.h"

Go to the source code of this file.

Classes

class  RC::RevPtr< T >
 A reference counting pointer that revokes (NULLs) all copies when one set to AutoRevoke(true) leaves scope. More...
 

Namespaces

 RC
 

Functions

template<class T >
std::ostream & RC::operator<< (std::ostream &out, RevPtr< T > obj)
 A convenience stream output for displaying the enclosed object.
 
template<class T , class... Args>
RevPtr< T > RC::MakeRevPtr (Args &&... args)
 Create a new RevPtr<T> constructed with the given arguments.
 

Detailed Description

A reference counting pointer that revokes (NULLs) all copies when one set to AutoRevoke(true) leaves scope.

email address
— (c) 2015