Moved smart_ptr contents to subdirectories, switched to a local test/Jamfile.

[SVN r17042]
This commit is contained in:
Peter Dimov
2003-01-25 16:17:17 +00:00
parent d030182e87
commit abb0d9e725
20 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
// Boost shared_ptr_example2 header file -----------------------------------//
#include <boost/shared_ptr.hpp>
// This example demonstrates the handle/body idiom (also called pimpl and
// several other names). It separates the interface (in this header file)
// from the implementation (in shared_ptr_example2.cpp).
// Note that even though example::implementation is an incomplete type in
// some translation units using this header, shared_ptr< implementation >
// is still valid because the type is complete where it counts - in the
// shared_ptr_example2.cpp translation unit where functions requiring a
// complete type are actually instantiated.
class example
{
public:
example();
example( const example & );
example & operator=( const example & );
void do_something();
private:
class implementation;
boost::shared_ptr< implementation > _imp; // hide implementation details
};