Skip to content

Commit f6af837

Browse files
authored
Merge pull request #220 from N-Dekker/Describe-ITK_DEFAULT_COPY_AND_MOVE
DOC: Describe `ITK_DEFAULT_COPY_AND_MOVE`
2 parents 95b46fe + 8430b42 commit f6af837

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3284,6 +3284,11 @@ \section{Using Standard Macros}
32843284
\item \code{ITK\_DISALLOW\_COPY\_AND\_ASSIGN(TypeName)}: Disallow copying by
32853285
declaring copy constructor and assignment operator deleted. This must be
32863286
declared in the \textbf{public} section.
3287+
\item \code{ITK\_DEFAULT\_COPY\_AND\_MOVE(TypeName)}: Enables copying and moving
3288+
by explicitly defaulting the copy constructor, copy assignment operator, move
3289+
constructor, and move assignment operator of a class. Especially useful for
3290+
classes that have a user-defined destructor. Intended to be placed in the
3291+
\textbf{public} section of a class.
32873292
\item \code{itkDebugMacro(x)}: If debug is set on a subclass of
32883293
\doxygen{Object}, prints debug information to the appropriate output
32893294
stream.

0 commit comments

Comments
 (0)