-8
List(); 

List( List const & ); 

List( List && ); 

Please tell me the difference between these three constructors (specially last two)? actually i'm confused between List & and List && ? what is the difference between & and &&

M.Huzaifa
  • 1
  • 2
  • 5
    It would be more productive for you to study some C++. This isn't a tutorial site. There's a list of good books [here](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list). – juanchopanza Sep 20 '15 at 08:01

1 Answers1

0

Coming top-to-bottom:

Default constructor:

List(); 

Copy constructor (where const & means it takes const lvalue reference):

List( List const & ); 

Move constructor (where && means it takes non-const rvalue reference):

List( List && );
syntagma
  • 23,346
  • 16
  • 78
  • 134