DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5
  1. #1
    Join Date
    May 2007

    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.

    Please help.


  2. #2
    Join Date
    Nov 2003
    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.
    Danny Kalev

  3. #3
    Join Date
    May 2007
    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,
    StrictWeakOrdering comp);

  4. #4
    Join Date
    Nov 2003
    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/
    Danny Kalev

  5. #5
    Join Date
    May 2007
    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.

Similar Threads

  1. Replies: 1
    Last Post: 11-02-2007, 07:35 AM
  2. Replies: 0
    Last Post: 04-11-2002, 06:48 PM
  3. Code security
    By Rob Teixeira in forum .NET
    Replies: 5
    Last Post: 11-27-2001, 06:12 PM
  4. Brain Washing
    By Danny Bowman in forum .NET
    Replies: 152
    Last Post: 09-13-2001, 07:23 AM
  5. Replies: 84
    Last Post: 01-29-2001, 01:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.