Explorar el Código

map: changing comment on insertion failure in avl_tree

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> hace 10 años
padre
commit
05f9979e53
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/lol/base/map.h

+ 1
- 1
src/lol/base/map.h Ver fichero

@@ -56,7 +56,7 @@ public:
m_tree.Insert(typed_key, default_value);
}

ASSERT(m_tree.TryGetValue(typed_key, value_ptr), "inner tree is messed up in map");
ASSERT(m_tree.TryGetValue(typed_key, value_ptr), "inserted key can’t be retrieved. key operator < must behave as a comparator (a<b => !b<a)");

/* If not found, insert a new value. */
return *value_ptr;


Cargando…
Cancelar
Guardar