cmakepp_lang/map/copy

cmakepp_lang/map/copy.cpp_map_copy(this other)

Makes a deep copy of a Map instance.

This function will deep copy (recursively) the contents of a map into a new Map instance. The resulting instance will not alias the original map in any way.

Parameters:
  • this (map) – The Map instance being copied.

  • other (desc) – The name of the variable which will hold the deep copy.

Returns:

other will be set to a deep copy of this.

Return type:

map

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 cpp_map_copy will ensure that the caller has provided only two arguments and that those arguments are of the correct types. This error check is only performed if CMakePP is being run in debug mode.