Talk:cpp/concepts/semiregular

Hi Everyone

Does below code will be an example for semiregular?? Inplace of typename i just want to use semiregular to my T??

Is this how i need to use semiregular concepts constraint on my T?

If not can anyone suggest on how to use it?

OR

--Dotyes (talk) 02:32, 19 September 2019 (PDT)Mohan
 * Both forms are OK. And it's better to leave all special member functions implicitly defined than manually define them. --Fruderica (talk) 04:18, 19 September 2019 (PDT)

And it's better to leave all special member functions implicitly defined than manually define them means I should'nt define special member function like default constructor, copy constructor, destructor and assignment for my user defined class??

Will this code works?? I'm correct in understanding your answer?? --Dotyes (talk) 04:24, 22 September 2019 (PDT)Mohan
 * You should write instead of, and write  at first. Whether leave special member functions implicitly defined is better depends on the behavior of your class. --Fruderica (talk) 07:35, 22 September 2019 (PDT)

Thank you so much @Fruderica.