Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes, you used it, since <code>std::string</code> alone is "part of the STL", but, more importantly, you are using the iterators, which are a distinctive trait of the STL.</p> <p>Now, for the mandatory purists part: the STL was a library published by SGI and developed mainly by Alexander Stepanov. What I think you are referring to is "the part of the SGI STL which was later included into the standard with some minor modifications", i.e. all the generic containers/algorithms/iterators stuff.</p> <p>The usage of the term "STL" for this stuff is tolerated, what is plain wrong, instead, is calling "STL" the whole C++ standard library (which includes a lot of other stuff, e.g. iostreams, locale, the library inherited from C, ...).</p> <blockquote> <p>If I have used STL, how can I modify them to do what they do without STL?</p> </blockquote> <p>Why would you want to do that? Anyhow, you have several options, that span from rewriting such classes and algorithms from scratch to using simpler data structures (e.g. C strings) reimplementing only the algorithms you need. Anyway, they both imply reinventing the wheel (and probably reinventing a square wheel), so I'd advise you against doing this unless you have a compelling reason.</p> <hr /> <blockquote> <p>EDIT: I guess this is OUR definition of STL: <a href="http://www.sgi.com/tech/stl/stl_index_cat.html" rel="nofollow">http://www.sgi.com/tech/stl/stl_index_cat.html</a></p> </blockquote> <p>Are you sure? Almost no one today uses the SGI STL, generally you use the (more or less) equivalent portion of your C++ standard library (that, by the way, is what you are doing in your code, since you are getting everything from the <code>std</code> namespace).</p> <blockquote> <p>I don't see const_iterator...</p> </blockquote> <p><code>const_iterator</code> is a <code>typedef</code> member of <code>basic_string&lt;char&gt;</code>, you find it in <a href="http://www.sgi.com/tech/stl/basic_string.html" rel="nofollow">its page</a>.</p> <blockquote> <p>but I do see max. But is that the max I used?</p> </blockquote> <p>No, it's not it, your <code>max</code> is not a global function, but a member of the <code>std::numeric_limits</code> template class. Such class do not come from the STL.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload