base: Add static assert to trie
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Tue, 10 Mar 2020 08:58:07 +0000 (09:58 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 16 Mar 2020 22:22:07 +0000 (22:22 +0000)
commitd8e7d6bcb94a3ed9cb8a60440dde1792efa6acc2
tree9a4cfe104e0b57953875a541591eaa2e87ac2204
parent6bc95729143becf35ec2a549c539db65f732187a
base: Add static assert to trie

Trie is based on the condition that they key is an integral. As so,
add a static_assert to guarantee that. Also, added some general info
about tries to the class.

Change-Id: Idc18f6a685db8047cd44b791f427666d3dd2d187
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26784
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/trie.hh