A full function class --C ++ 11 (h)

class X-{ 
    X-(SomeType);             // General constructor 
    X-();                     // default constructor 
    X-( const X-&);             // copy constructor 
    X-(X-&&);                  // move constructor, a simple and efficient from a scope moves to another scope 
    X-& operator = ( const X-&); // copy assignment constructor 
    X-& operator = (X-&&);       // move assignment constructor 
    ~ X-();                    // destructor 
    
    X-( const X-&) = default ;   // display indicative of a generation whose default implementation 
    X (const the X-&) = the Delete ;    // point out not generate its default implementation 
}

 

Guess you like

Origin www.cnblogs.com/share-ideas/p/11886783.html