Possible Duplicate:
Standard data structure library in C?
Does C have any data structure implementations similar to the C++ STL? Specifically associative containers, hash maps or any other structure with approximately constant time retrieval?
Thanks!
C can't have an "exact equivalent" of STL because C doesn't have templates or classes.
The Standard Template Library (STL) is a software library originally designed by Alexander Stepanov for the C++ programming language that influenced many parts of the C++ Standard Library. It provides four components called algorithms, containers, functions, and iterators.
The '=' is an operator in C++ STL that copies (or moves) a set to another set and set::operator= is the corresponding operator function. Returns the copy of the allocator object associated with the set.
The copy() function in C++ is used to copy the values from an array/vector within a specified range to another array/vector. This function is available in the <algorithm.
C can't have an "exact equivalent" of STL because C doesn't have templates or classes.
You might be interested in the "Glib collections" library:
http://www.ibm.com/developerworks/linux/tutorials/l-glib/
Gnome Glib: http://developer.gnome.org/glib/stable/
GNU Gnulib: http://www.gnu.org/software/gnulib/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With