base: Add const qualifiers to 'util/list.h'

This patch adds support for iterating through a const list. This allows
users of lists to be more rigid with regard to constness. Furthermore,
the patch adds the function 'List::insert_at' for inserting an element
at a specified position. By adding this function, we can remove code
duplication in nitpicker.
This commit is contained in:
Norman Feske
2013-09-07 12:54:35 +02:00
parent 664aff2a56
commit 21462cdbd2
7 changed files with 43 additions and 21 deletions

View File

@ -157,7 +157,7 @@ namespace Input {
*
* \return total number of available input events
*/
Genode::size_t flush_sources(Event *dst, Genode::size_t dst_max) const
Genode::size_t flush_sources(Event *dst, Genode::size_t dst_max)
{
Genode::size_t dst_count = 0;