Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: C++
Expertise: Intermediate
Jul 16, 1999

The Organization of STL Header Files: Algorithms, Iterators, Numerics and Other

You can apply STL generic algorithms to a sequence of elements. They are defined in the header file <algorithm>. (on pre-standardized implementations, the name <algo.h> is used instead). Iterators are used to navigate sequences and are defined in the header file <iterator>.

STL also provides several classes and algorithms that are specifically designed for numeric computations. These classes and algorithms are defined in these headers:

 
<complex>  // complex numbers and their associated operations
<valarray>  // mathematical vectors and their associated operations
<numerics>  // generalized numeric operations

Finally, three additional headers contain auxiliary components that are used in STL containers and algorithms, but you can also use them independently. These headers are:

 
<utility>	  // operators and pairs
<functional>  // function objects
<memory>  // allocators and auto_ptr
Danny Kalev
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date