Abraxas/CCS  Home  Table of Contents

Module - 43.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 43.cpp

// 43) Pimpl judiciously.

template  class shared_ptr ;
class C43 {
    }
private:
    struct Impl;
    shared_ptr pimpl_;



Function Name: operator=()

    C43& operator=(const C43&) {
        shared_ptr   temp( new Impl() );
};

// boost example

/*

namespace boost {

template class shared_ptr ;

}

struct Foo;

typedef boost::shared_ptr FooPtr;

struct FooPtrOps

{

bool operator()( const FooPtr & a, const FooPtr & b )

    {  }

void operator()( const FooPtr & a )

    {  }
};
*/

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS