Index |
This is
the index of all code examples
of the book
The C++ Standard Library - A Tutorial and Reference
by
Nicolai M. Josuttis.
A
absolute and relative values
accumulate() algorithm
adjacent_difference() algorithm
adjacent_difference() algorithm to convert absolute into relative values
adjacent_find() algorithm
advance()
advance() and iterators
algorithm for_each()
algorithms and member functions
algorithms and predefined function objects
algorithms example
algorithms that use function objects
algorithms that use functions
algorithms that use functions
algorithms that use predicates
algostuff.hpp
allocator, default
allocator, user-defined
allocator, user-defined, introduction
allocator, user-defined, usage
array as STL container
array wrapper
array wrapper usage
associative array introduction
asso_inserter declaration
asso_inserter example use
assoiter.hpp
auto_ptr
auto_ptr
auto_ptr implementation
B
back inserter
base() for reverse iterators
binary representation of numeric values with bitset
binary_search() algorithm
bitset example
bitset example for binary representation of numeric values
C
carray
carray example use
carray.hpp
case-insensitive string declaration
case-insensitive strings
case-insensitive string usage
cat
category of iterators
char_traits
classic() for locales
comparison criterion for strings
complex
complex
compose10.hpp
compose11.hpp
compose12.hpp
compose1 function object
compose1 function object usage
compose21.hpp
compose22.hpp
compose2 function object
compose2 function object usage
compose_f_g function object
compose_f_g function object usage
compose_f_gx function object
compose_f_gx function object usage
compose_f_gx_hx function object
compose_f_gx_hx function object usage
compose_f_gx_hy function object
compose_f_gx_hy function object usage
compose_f_gxy function object
compose function objects introduction
compress whitespace
convert absolute values into relative values
convert iterator to reverse iterator
convert relative values into absolute values
convert reverse iterator to iterator
copy() algorithm
copy() algorithm versus copy_backward() algorithm
copy() algorithm with stream iterators
copy() ERROR due to overwriting nonexisting elements
copy() into containers that have enough size
copy() into containers with inserters
count() algorithm
count() and stream buffer iterators
CountedPtr
CountedPtr example Use
counted reference semantics
count_if() algorithm
count lines of a file
countptr.hpp
D
default allocator
deque example
deque introduction
different I/O formats
different I/O formats
distance()
distance() algorithm
distance() auxiliary implementation
distance.hpp
E
eback()
egptr()
equal() algorithm
equal_range() algorithm
erase()
erase() and remove()
F
file descriptor as I/O stream
file descriptor as I/O stream usage
file functions
file I/O
file position
files, read and write access
fill() algorithm
fill_n() algorithm
filter
find()
find() algorithm
find_end() algorithm
find_first_of() algorithm
find_if() algorithm
finding elements in a map
fopow.hpp
for_each() algorithm return value
for_each() algorithm return value
for_each() algorithm using a function
for_each() algorithm using a function object
for_each() with function
for_each() with function object
front inserter
function as binary predicate
function as sorting criterion
function object
function object as binary predicate
function object as sorting criterion
function object by reference
function object compose1
function object compose2
function object compose_f_g
function object compose_f_gx
function object compose_f_gx_hx
function object compose_f_gx_hy
function object compose_f_gxy
function object fopow
function objects as algorithm arguments
function objects predefined
function object versus predicate
function object with state
functions as algorithm arguments
functions as algorithm arguments
G
general inserter
generate() algorithm
generate() algorithm
generate_n() algorithm
generate_n() algorithm
generate_n() algorithm
gptr()
gslice for valarrays
H
heap algorithms
I
ignore.hpp
ignoreLine manipulator declaration
ignoreLine manipulator usage
imbue() for streams
imbue() for streams
includes() algorithm
indirect array for valarrays
inner_product() algorithm
inplace_merge() algorithm
>> input operator (enhanced version)
input operator (enhanced version)
input operator (enhanced version)
>> input operator (simple version)
input operator (simple version)
input operator (simple version)
input stream buffer
input stream buffer usage
inserter (general)
inserters
internationalized I/O
internationalized I/O
I/O streams file functions
I/O streams file position functions
I/O streams, filter
I/O streams, redirect channel
I/O streams simple example
I/O streams with files
istreambuf_iterator
istream iterator
istream iterator
iterator and advance()
iterator category
iterators
iterator to reverse iterator
iter_swap()
L
lexicographical_compare() algorithm
list example
list introduction
list introduction with iterators
list special member functions
locale
locale
locale, num_get()
locale reading from standard input
lower_bound() algorithm
lowercase characters of a string
M
make_heap() algorithm
manipulating algorithms
manipulator ignoreLine declaration
manipulator ignoreLine usage
manipulator unskipws
manipulator with parameter implementation
manipulator with parameter usage
map as associative array
map example
map finding elements
map utility function to change the key of an element
map with sorting criterion
masked array for valarrays
max()
max_element() algorithm
member functions as algorithm arguments
mem_fun
mem_fun_ref
merge() algorithm
merge() algorithm
min_element() algorithm
mismatch() algorithm
multimap example
multimap introduction
multimap utility function to change the key of an element
multiset example
N
name() for locales
next_permutation() algorithm
nth_element() algorithm
nullary_function
nullary.hpp
numeric_limits
numeric values: binary representation
num_get() for locales
O
ostreambuf_iterator
ostream iterator
ostream iterator
ostringstream
<< output operator (enhanced version)
output operator (enhanced version)
output operator (enhanced version)
<< output operator (simple version)
output operator (simple version)
output operator (simple version)
output stream buffer (buffered version)
output stream buffer (buffered version) usage
output stream buffer (enhanced version)
output stream buffer (enhanced version) usage
output stream buffer for file descriptor
output stream buffer for file descriptor usage
output stream buffer (simple version)
output stream buffer (simple version) usage
overflow()
P
partial_sort() algorithm
partial_sort_copy() algorithm
partial_sum() algorithm
partial_sum() algorithm to convert relative into absolute values
partition() algorithm
pbase()
pbump()
permutating algorithms
pop_heap() algorithm
pptr()
predicate
predicate implemented as function
predicate implemented as function object
predicate versus function object
prev_permutation() algorithm
print.hpp
priority_queue example
ptr_fun()
push_heap() algorithm
Q
Queue declaration
queue example
Queue example use
Queue.hpp
R
random number generator
random_shuffle() algorithm
ranges
ranges and reverse iterators
rbegin() for containers
rbegin() for containers
read and write access
redirecting streams
relative and absolute values
remove() algorithm
remove() and erase()
remove_copy() algorithm
remove_copy_if() algorithm
remove() does not remove
remove_if() algorithm
remove_if() algorithm and unexpected behavior
removing elements in associative containers
removing elements in lists
removing elements (version with expected behavior)
removing elements (version with unexpected behavior)
rend() for containers
rend() for containers
replace() algorithm
replace_copy() algorithm
replace_copy_if() algorithm
replace_if() algorithm
reverse() algorithm
reverse_copy() algorithm
reverse iterator
reverse iterator and ranges
reverse iterator to iterator
rotate() algorithm
rotate_copy() algorithm
runtime errors with STL
runtime sorting criterion in a map
runtime sorting criterion in a set
S
search() algorithm
search() algorithm with subrange criterion
search_n() algorithm
set algorithms
set_difference() algorithm
set example
setg()
set_intersection() algorithm
set introduction
setp()
set special member functions
set_symmetric_difference() algorithm
set_union() algorithm
set with sorting criterion
size of containers
skipws flag
slice for valarrays
sort() algorithm
sort() algorithm versus stable_sort() algorithm
sort_heap() algorithm
sorting criterion defined as function
sorting criterion defined as function object
sorting elements by using a set
sorting elements by using a vector
stable_partition() algorithm
stable_sort() algorithm versus sort() algorithm
Stack declaration
stack example
Stack example use
Stack.hpp
STL and runtime errors
stream buffer
stream buffer
stream buffer iterators
stream buffer iterators and STL algorithms
stream, fast I/O using stream buffers
stream, fast I/O using stream buffers
stream for strings
stream iterator
stream iterator use with copy() algorithm
stream, redirect channel
streams and exceptions (version 1)
streams and exceptions (version 2)
streams, filter
streams simple example
string and algorithms
string and transform()
string, case-insensitive declaration
string, case-insensitive usage
string, case-insensitive with comparison criterion
string example
string example with search functions
string, lowercase characters
string stream
string, uppercase characters
swap_ranges() algorithm
T
transform()
transform() algorithm with one source range
transform() algorithm with two source ranges
transform() with strings
transform() with user-defined function object
U
underflow()
unique() algorithm
unique_copy() algorithm
unique_copy() algorithm
unique_copy() algorithm to compress whitespace
unsetf()
unskipws manipulator
upper_bound() algorithm
uppercase characters of a string
use_facet()
user-defined allocator
user-defined allocator usage
user-defined class Queue
user-defined class Stack
user-defined iterator declaration
user-defined iterator example use
utility function to change the key of an element
V
valarray
valarray
valarray gslice
valarray indirect array
valarray masked array
valarray slice
vector example
vector introduction
W
whitespace compressing
whitespace compressing
X
xsputn()