Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Clone Smart Pointer (clone_ptr)

, 23 Aug 2005 Public Domain
A non-sharing smart pointer class that can be used with STL containers like std::map, vector, list, set, and deque. The smart pointer has assignment operator and greater than operator that call the target object's equal operator.
clone_ptr.zip
clone_ptr_demo.zip
ClonePointerDemo
VC60
ClonePointerDemo.dsp.src
ClonePointerDemo.dsw
res
ClonePointerDemo.ico
ClonePointerDemo.dsp
VC71
res
ClonePointerDemo.ico
ClonePointerDemo.dsp
ClonePointerDemo.dsp.src
ClonePointerDemo.dsw
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ClonePointerDemo", "ClonePointerDemo.vcproj", "{A4EBE20B-5FD5-484E-BA1E-051B4616F65F}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		Debug = Debug
		Release = Release
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{A4EBE20B-5FD5-484E-BA1E-051B4616F65F}.Debug.ActiveCfg = Debug|Win32
		{A4EBE20B-5FD5-484E-BA1E-051B4616F65F}.Debug.Build.0 = Debug|Win32
		{A4EBE20B-5FD5-484E-BA1E-051B4616F65F}.Release.ActiveCfg = Release|Win32
		{A4EBE20B-5FD5-484E-BA1E-051B4616F65F}.Release.Build.0 = Release|Win32
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication

Share

About the Author

Axter
Software Developer (Senior) Commvault
United States United States
I started programming as a hobby in 1985 on my 8-bit Atari computer. I programmed in BASIC and in assembly language until I upgraded to a 16-bit IBM compatible in 1988.
In 1989, I started programming in C using Turbo C++. IMHO, Turbo C/C++ was the best compiler available to the market for many years, until VC++ 4.0 came out.
I started using MFC with VC++ 4.0 in 1996, and I developed and sold an application called GameMenu95. It had limited success, and I retired the program in 1999.
 
I now perform contract work in a variety of operating systems mostly using C/C++.
I occasionally have contract work for Java applications and MS Access development.
 
My favorite language of choice is C++. I believe it has the best combination of flexibility, speed, and type safety.
I’ve used many compilers and IDE, to include (VC++7.0, 7.1, 6.0, GCC 2.x, 3.x, Turbo C/C++, Borland 5.x, Watcom, MinGW, DevC++, Eclipse….)
However, by far, my most favorite IDE is VC++6.0. Although this compiler has poor C++ compliance, it more then makes up for it by its outstanding interface and tools.
 
Coding is still my hobby, and I’m very fortunate in that I get paid good money to engage in my hobby!
 
Life is good!!! Smile | :)
 

If I really helped you save some bucks, I would like to ask you for something: Please donate some of these saved bucks (you decide) to the charity organization of your choice - or just help out somebody who is needier than you are......
Pass it on....... Smile | :)

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150224.1 | Last Updated 23 Aug 2005
Article Copyright 2005 by Axter
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid