cmakepp_lang/map/has_key
- cmakepp_lang/map/has_key.cpp_map_has_key(this result key)
Determines if a map has the specified key.
This function is used to determine if a particular key has been set for this map.
- Parameters:
this (map) – The map for which we want to know if it has the specified key.
result (desc) – Name to use for the variable which will hold the result.
key (str) – The key we want to know if the map has.
- Returns:
result
will be set toTRUE
ifkey
has been set for this map andFALSE
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 called with exactly two arguments, and that those arguments have the correct types. If these assertions fail an error will be raised. These checks are only performed if CMakePP is run in debug mode.