Click here to Skip to main content
11,636,906 members (73,533 online)
Click here to Skip to main content
Add your own
alternative version

Ideas from a smart pointer(part 2). size == sizeof(std::shared_ptr)/2

, 3 Jun 2012 CPOL 9.5K 80 2
embedded ref-counted resource management
#pragma once

namespace cm
{
	void* CommonAlloc(size_t size);
	void CommonFree(void* p);
	void* CommonAlignedAlloc(size_t size, size_t alignment);
	void CommonAlignedFree(void* p);
}

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 The Code Project Open License (CPOL)

Share

About the Author

weibing
China China
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150728.1 | Last Updated 3 Jun 2012
Article Copyright 2012 by weibing
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid