STL code Download
Hello to all expect programmer, i would like to download the STL code in order to learn STL techniques.
I can find the declaration of function such as binary search but not its definition.
I also try with google code search.
bsearch is part of ANSI C so you should be able to find it (along with qsort) in <csstdlib>. In C++, similar algorithms exist but they are more diverse and give you much more flexibility. Look at the <algorithm> header for them.
I look the algorithm under debugging but the code is difficult to read. They using HP source.
I know the declaration of the binary search function but not definition.
template <class ForwardIterator, class LessThanComparable>
bool binary_search(ForwardIterator first, ForwardIterator last,
const LessThanComparable& value);
template <class ForwardIterator, class T, class StrictWeakOrdering>
bool binary_search(ForwardIterator first, ForwardIterator last, const T& value,
Well, you need to start with the basic concepts of STL first. Learn what iterators are and which iterator categories STL defines. Then move to function objects. Here's a good place to start: http://www.sgi.com/tech/stl/
The things i know what is iterator its categories such as , input and output iterator, one directional, bidirectional and random access iterators.
Funtor is kind of object when its overlad operator()().
This object can act as function call in main or parameters.
Am i correct ?
Please correct me if i wrong.
By debojyotisarkar in forum ASP.NET
Last Post: 11-02-2007, 07:35 AM
By Al Guten in forum .NET
Last Post: 04-11-2002, 06:48 PM
By Rob Teixeira in forum .NET
Last Post: 11-27-2001, 06:12 PM
By Danny Bowman in forum .NET
Last Post: 09-13-2001, 07:23 AM
By Jon Ogden in forum .NET
Last Post: 01-29-2001, 01:12 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL