[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: modules for generic unordered sets and mappings
From: |
Jose E . Marchesi |
Subject: |
Re: RFC: modules for generic unordered sets and mappings |
Date: |
Sat, 03 Jul 2010 23:00:36 +0200 (CEST) |
gl_set_search O(n) O(1)
Here the search method returns a void *, with value (void*)-1
denoting "not found". Hmm, or should the search method better
take a 'bool *' argument???
If 'gl_set_search' is merely testing the membership of an element in a
set, would not suffice to make it to return a boolean value, like in:
bool gl_set_search (void *key);
- Re: RFC: modules for generic unordered sets and mappings, (continued)
- Re: RFC: modules for generic unordered sets and mappings,
Jose E . Marchesi <=