Hi everyone,
I write code of my application and I'd like to know What kind of constructor is called in situation:
Move constructor or copy constructor?Qt Code:
To copy to clipboard, switch view to plain text mode
Hi everyone,
I write code of my application and I'd like to know What kind of constructor is called in situation:
Move constructor or copy constructor?Qt Code:
To copy to clipboard, switch view to plain text mode
If date() returns a copy and a move constructor is available for QDate then it should be a move constructor. If date() returns a const reference then a copy constructor will be used. It is left as an exercise to the reader to check which is the case
Bookmarks