Re: Unix extension lib for std:set like operation ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: Unix extension lib for std:set like operation ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Unix extension lib for std:set like operation ?  
Måns Rullgård


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-27-07 12:32 AM

"Josh Sebastian" <sebasttj@gmail.com> writes:

> On Mar 26, 3:24 pm, mr.h...@gmail.com wrote: 
>
> Look at the functions in search.h (eg, tsearch(3)). C++98's std::set
> tends to provide a set-like interface to a binary tree implementation,
> so you could provide your own light interface wrapper around the POSIX
> tree implementation.
>
> My man page says the tree functions are SVID only; the hash map (eg,
> hcreate(3)) functions are POSIX, though, and those could also be
> adapted to provide set-like operations.

The problem with the hash functions is that they are practically
impossible to use sensibly.  The standard functions only let you have
*one* global hash table, and the non-standard reentrant ones are,
well, non-standard.

--
Måns Rullgård
mans@mansr.com





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:08 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register