cmakepp_lang/object/copy

cmakepp_lang/object/copy._cpp_object_copy(this other)

Deep copies an Object instance.

This function is the default copy implementation for all user-defined objects. It can be overridden in the base class if desired. The default implementation simply deep copies recursively the entirety of the Object’s state.

Parameters:
  • this (obj) – The Object instance which is being copied.

  • other (desc) – Name for the variable which will hold the copy.

Returns:

other will be set to a deep copy of this.

Return type:

obj

Variables:

CMAKEPP_LANG_DEBUG_MODE (bool) – Used to determine if CMakePP is being run in debug mode or not.

Error Checking

If CMakePP is run in debug mode (and only if CMakePP is run in debug mode) this function will ensure that it was called with the correct number and types of arguments.