![]() |
Parasol Planning Library (PPL)
|
#include "CDInfo.h"
#include "Geometry/Bodies/Body.h"
#include "Geometry/Bodies/MultiBody.h"
#include <limits>
Functions | |
template<template< typename... > class MapType, typename KeyType , typename ValueType > | |
void | UpdateMinimum (MapType< KeyType, ValueType > &_map, const KeyType _key, const ValueType _value) |
void UpdateMinimum | ( | MapType< KeyType, ValueType > & | _map, |
const KeyType | _key, | ||
const ValueType | _value | ||
) |
Insert a value into a map if it didn't already exist, or update it if it is less than the existing value.
_map | The map container. |
_key | The key. |
_value | The value. It will be set if _key was not already in _map, or if it is lower than the value currently mapped to _key. |