From 5dc738a57930271194bd86673eb86f149096a7b2 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 19 Mar 2019 16:21:54 +0800 Subject: ... --- snippets/vc++snippets.snippet | 124 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 122 insertions(+), 2 deletions(-) (limited to 'snippets') diff --git a/snippets/vc++snippets.snippet b/snippets/vc++snippets.snippet index 1a5f7666..ebd72463 100644 --- a/snippets/vc++snippets.snippet +++ b/snippets/vc++snippets.snippet @@ -5,7 +5,7 @@ Deleted Copy Constructor/Assignment crupest Declare a deleted copy constructor and a deleted copy assignment operator for a class. - dcopy + deletecopy Expansion @@ -26,12 +26,38 @@ + +
+ Default Copy Constructor/Assignment + crupest + Declare a default copy constructor and a default copy assignment operator for a class. + defaultcopy + + Expansion + +
+ + + + classname + class_name + The name of the class. + + + + + + +
Deleted Move Constructor/Assignment crupest Declare a deleted move constructor and a deleted move assignment operator for a class. - dmove + deletemove Expansion @@ -52,4 +78,98 @@ + +
+ Default Move Constructor/Assignment + crupest + Declare a default move constructor and a default move assignment operator for a class. + defaultmove + + Expansion + +
+ + + + classname + class_name + The name of the class. + + + + + + +
+ +
+ Default Copyable/Movable Class + crupest + Define a class with default constructor, destructor, move/copy constructor/assignment-operator. + defaultclass + + Expansion + +
+ + + + classname + class_name + The name of the class. + + + + + + +
+ +
+ Default Noncopyable/Nonmovable Class + crupest + Define a class with default constructor, destructor and deleted move/copy constructor/assignment-operator. + objectclass + + Expansion + +
+ + + + classname + class_name + The name of the class. + + + + + + +
\ No newline at end of file -- cgit v1.2.3