I have a question about c++ copy generators and mobile generators!

Asked 2 years ago, Updated 2 years ago, 23 views

Hello! The copy creator and the move creator are asking if this is correct!

First, I'm going to put a copy maker in the middle Person(const Person& c) : : maxValuec.maxValue, valuec.value I put as below, but the expression doesn't work.What's wrong with him?

I'm asking if the copy creator should go to //creator's location. The second question is the mobile constructor, which is attached just below the copy constructor Person(Person&& c) I'd like to ask if this is how you put the address.

I'm sorry to ask you a question with meager knowledge. I also upload the cpp code just in case.

c++

2022-09-20 19:36

1 Answers

I think the contents of the text are probably the following questions.

https://stackoverflow.com/a/15335287/12365658


2022-09-20 19:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.