Newsletter
Advertiser Disclosure
Architecture
Databases
Enterprise
.NET
Java
OpenSource
Mobile
Web Dev
DevXtra Blogs
Daily News
Tips Bank
eBook Library
Subscribe
Twitter
Full Site
RSS
Copyright 2021 © QuinStreet Inc. All Rights Reserved
Search
SEARCH
Submit
DevX Tips Bank: STL
Using the Standard Library Algorithms with Arrays
Pointers may be used as iterators when using the standard library algorithms found in …
Porting
itoa
Windows STL Code to Linux
This tip can help you port your code from Windows to Linux when your code uses the default …
Porting Code from Windows to Linux
This tip provides a substitute for the __strrev function, because …
Using the
ostream_iterator()
This iterator works in conjunction with STL algorithms, allowing you to perform a variety …
Using Insert Iterators
Insert iterators come in very handy when you need to populate a container using an STL …
Using STL Binders
Learn how to use STL binders to use binary function objects as unary function objects in …
Favor the Function Object to the Function Pointer in STL Algorithms
Many of the STL algorithms have two versions, with one version taking one less parameter …
Returning from
main()
This tip describes the exceptions and their workarounds for returning from main().
Generate Permutations for a Given Set of Numbers
Use the STL Library function next_permutation to generate …
Include Templates
Unlike ordinary classes and functions, which you declare in a header file and define …
Serializing a Polymorphic Object
A polymorphic object has one or more virtual functions. When you serialize such an …
Parenthesize Macro Arguments
It's a good idea to parenthesize every macro argument. For ...
Namespaces and the C Standard Library
The C++ Standard requires that the C standard library be declared in namespace std, …
Where are std::min() and std::max()?
The Standard Library defines the two template functions std::min() and std::max() in …
<iostream.h> or <iostream>?
Although the <iostream.h> library was deprecated for several years, many C++ users …
Older Articles
Home
Mobile Site
|
Full Site