cmakepp_lang/map/equal

cmakepp_lang/map/equal.cpp_map_equal(this result other)

Determines if two map instances are equivalent.

Two map instances are considered equal if they contain the same keys and each key is associated with the same value. The order of the keys does not need to be the same.

Parameters:
  • this (map) – One of the two maps being compared.

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

  • other (map) – The map we are comparing to.

Returns:

result will be set to TRUE if the two map instances compare equal and FALSE otherwise.

Return type:

bool

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 this function will assert that it was provided exactly three arguments, and that those arguments have the correct types. If these assertions fail an error will be raised. These error checks are only done if CMakePP is run in debug mode.