0

My professor told me about STL (he doesn't use a Mac currently). With some googling, I found that STL has been deprecated for years. What's the current way to do this most easily?

ildjarn
  • 62,044
  • 9
  • 127
  • 211
  • 2
    You need to learn the difference between ["STL"](http://stackoverflow.com/tags/stl/info) and the C++ standard library, the latter of which comes with any C++ compiler and _does_ have [`stack`](http://en.cppreference.com/w/cpp/container/stack), [`queue`](http://en.cppreference.com/w/cpp/container/queue), [`list`](http://en.cppreference.com/w/cpp/container/list), and [`forward_list`](http://en.cppreference.com/w/cpp/container/forward_list). – ildjarn Apr 26 '12 at 17:56
  • "Deprecated for years?" What are you talking about? – Maxpm Apr 26 '12 at 17:58

2 Answers2

4

The STL is the precursor to certain parts of the standard library (STD). Sometimes the term is used to refer to those parts.

To use stack, #include <stack>. There's also <list> and <queue>, and many others.

Here is a good reference site: http://en.cppreference.com/w/

And as always, a good book: The Definitive C++ Book Guide and List

Community
  • 1
  • 1
Pubby
  • 51,882
  • 13
  • 139
  • 180
2

You are just reading this wikipedia article, which states that #include <*.h> (old C libraries) have been deprecated.

paulrehkugler
  • 3,241
  • 24
  • 45