Ver código fonte

map: changing comment on insertion failure in avl_tree

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> 10 anos atrás
pai
commit
05f9979e53
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/lol/base/map.h

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

@@ -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;


Carregando…
Cancelar
Salvar