C++11StdLib  Index

The C++ Standard Library - A Tutorial and Reference, 2nd Edition

Index

This is the index of all code examples of the book The C++ Standard Library - A Tutorial and Reference, 2nd Edition by Nicolai M. Josuttis.



[contents]  [examples-home]  [book-home]  [copyrights

>> input operator (enhanced version)
>> input operator (simple version)
<< output operator (enhanced version)
<< output operator (simple version)
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
algorithms and lambdas
algorithms and predefined function objects
algorithms: ERROR due to overwriting nonexisting elements
algorithms example
algorithms that use function objects
algorithms that use functions
algorithms that use functions
algorithms that use predicates
algorithms with C++98
algostuff.hpp
allocator for C++11
allocator for C++11 usage
allocator for C++98/C++03
allocator for C++98/C++03 usage
all_of() algorithm
any_of() algorithm
array example
array introduction
array wrapper
associative array introduction
associative array with map
associative containers: sorting criterion
associative containers: sorting criterion at runtime
asso_inserter declaration
asso_inserter example use
assoiter.hpp
async()
async() and exceptions
atomics
attach() for threads
back inserter
base() for reverse iterators
begin() for containers
begin() global
binary representation of numeric values with bitset
binary_search() algorithm
binders
binders
binders for member functions
binders usage
binders with lambdas
binders with mutable lambdas
binders with stateful lambdas
bitset example
bitset example for binary representation of numeric values
boolalpha
bucket interface
case-insensitive regular expression search
case-insensitive string declaration
case-insensitive string usage
cat
category of iterators
cbegin() for containers
cend() for containers
char_traits
classic() for locales
clear() for streams
clock
clock
clock properties
close() for files
codecvt_utf16<>
codecvt_utf8<>
comparion criterion modification at runtime
complex
complex
compress whitespace
concurrent access
condition variable
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() into containers that have enough size
copy() into containers with inserters
count() algorithm
count() and stream buffer iterators
count lines of a file
count_if() algorithm
crbegin() for containers
crend() for containers
C-style array as STL container
C-style array as STL container with C++98
decltype
default_random_engine
deleter for shared_ptr for shared memory
deleter for shared_ptr for temporary file
deque example
deque introduction
detach() for threads
dictionary with multimap
dictionary with unordered multimap
different I/O formats
different I/O formats
distance()
distance() algorithm
distributions
distributions: linear
duration
eback()
egptr()
enable_shared_from_this
end() for containers
end() global
engine
engine state
epoch
equal() algorithm
equal_range() algorithm
equal_range() for sets
equivalence criterion as function object
equivalence criterion as lambda
erase()
erase() and remove()
erase() for containers
erase_after() for forward lists
exceptions
exceptions and async()
exceptions for regular expressions
exceptions for regular expressions usage
exceptions with streams (version 1)
exceptions with streams (version 2)
facet moneypunct<>
facet num_get()
facet numpunct<>
facet num_put()
facet time_get()
facet time_put()
file deleter
file descriptor as I/O stream
file descriptor as I/O stream usage
file I/O
file operations
file position
file stream temporary
filebuf
files, read and write access
fill() algorithm
fill_n() algorithm
filter
find()
find() algorithm
find_before() for forward lists
find_end() algorithm
find_first_of() algorithm
find_if() algorithm
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
forward list example
forward list: find_before()
forward list: finding elements with lambda and find_before()
forward list: finding elements with two iterators
forward list introduction
forward list: splice_after()
from_time_t()
from_time_t and get_time() manipulator
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 fopow
function object versus predicate
function object with state
function objects as algorithm arguments
function objects predefined
functions as algorithm arguments
functions as algorithm arguments
future
future shared
general inserter
generate() algorithm
generate() algorithm
generate_n() algorithm
generate_n() algorithm
generate_n() algorithm
get() for futures
get() for streams
get_money()
get_time() manipulator
gptr()
greater<> as sorting criterion for associative containers
gslice for valarrays
hash function as function object
hash function as lambda
hash function generic
hash table
hash table: bucket interface
heap algorithms
high_resolution_clock
hours
ifstream
ignore manipulator definition
ignore manipulator usage
ignore1.hpp
ignore2.hpp
ignoreLine() manipulator definition
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 (simple version)
input operator (simple version)
input stream buffer
input stream buffer usage
insert_after() for forward lists
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
iota() algorithm
is_heap() algorithm
is_heap_until() algorithm
is_partitioned() algorithm
is_permutation() algorithm
is_sorted() algorithm
is_sorted_until() algorithm
istream iterator
istream iterator
istreambuf_iterator
istringstream
iterator and advance()
iterator category
iterator for regular expression tokens
iterator for regular expressions
iterator to reverse iterator
iterators
iterators next()
iter_swap()
key modification for (multi)maps
lambda as hash function and equivalence criterion
lambda calling global functions
lambda calling member functions
lambdas
lambdas and algorithms
lambdas as binders
lambdas as sorting criterion
lambdas as stateful binders
lambdas as stateful binders with mutable
lexicographical_compare() algorithm
list example
list introduction
list members
list special member functions
list with iterators
locale
locale
locale: moneypunct<> facet
locale: num_get<> facet
locale: numpunct<> facet
locale: num_put<> facet
locale reading from standard input
locale: time_get<> facet
locale: time_put<> facet
lock
lock for condition variable
lower_bound() algorithm
lower_bound() for sets
lowercase characters of a string
make_heap() algorithm
manipulating algorithms
manipulator definition with arguments
manipulator definition without arguments
manipulator for money
manipulator for time
manipulator unskipws
manipulator with arguments
manipulator without arguments
map as associative array
map example
map: find element or key
map: new key
map with changing comparion criterion
mask_array for valarrays
match results in regular expressions
max()
max_element() algorithm
merge() algorithm
merge() algorithm
merge() for forward lists
merge() for lists
min_element() algorithm
minmax()
minmax()
minmax()
minmax()
minutes
mismatch() algorithm
money
moneypunct<> facet
move() algorithm
multimap as dictionary
multimap introduction
multimap: new key
multiset example
mutable lambdas
mutex
mutex for condition variable
mutithreading
name() for locales
narrow()
next() for iterators
next_permutation() algorithm
none_of() algorithm
now()
nth_element() algorithm
numeric conversions for strings
numeric values: binary representation
numeric_limits
num_get() facet
numpunct<> facet
num_put() facet
ofstream
open() for files
ostream iterator
ostream iterator
ostreambuf_iterator
ostringstream
output operator (enhanced version)
output operator (enhanced version)
output operator (simple version)
output operator (simple version)
output stream buffer (buffered version)
output stream buffer (buffered version) usage
output stream buffer for file descriptor
output stream buffer for file descriptor usage
output stream buffer (internationalized version)
output stream buffer (internationalized version) usage
output stream buffer (simple version)
output stream buffer (simple version) usage
overflow()
pair
partial_sort() algorithm
partial_sort_copy() algorithm
partial_sum() algorithm
partial_sum() algorithm to convert relative into absolute values
partition() algorithm
partition_copy() algorithm
partition_point() algorithm
pbase()
pbump()
permutating algorithms
piecewise_construct
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
promise
push_heap() algorithm
put() for streams
put_money()
put_time() manipulator
Queue declaration
queue example
Queue example use
Queue.hpp
random numbers
random_shuffle() algorithm
random_shuffle() algorithm with random-number generator
ranges
ranges and reverse iterators
ratio<>
ratio<> in durations
rbegin() for containers
read and write access
redirecting streams
reference semantic with reference_wrapper<>
reference semantic with shared_ptr
reference_wrapper
regex_iterator
regex_token_iterator
regular expressions
regular expressions: error codes
regular expressions: flags
regular expressions: iterator
regular expressions: loop over match results
regular expressions: match results
regular expressions: process exceptions
regular expressions: token iterator
relative and absolute values
remove() algorithm
remove() and erase()
remove() does not remove
remove_copy() algorithm
remove_copy_if() algorithm
remove_if() algorithm
remove_if() algorithm and unexpected behavior
removing elements in associative/unordered containers
removing elements in lists
removing elements (version with expected behavior)
removing elements (version with unexpected behavior)
rend() for containers
replace() algorithm
replace_copy() algorithm
replace_copy_if() algorithm
replace_if() algorithm
reverse() algorithm
reverse iterator
reverse iterator and ranges
reverse iterator to iterator
reverse_copy() algorithm
rotate() algorithm
rotate_copy() algorithm
runtime errors with STL
rvalue references and file streams
rvalue references and string streams
search() algorithm
search() algorithm with subrange criterion
search_n() algorithm
seed for random engines
set example
set introduction
set introduction
set: sorting criterion at runtime
set: special member functions
set: special member functions
set_difference() algorithm
setg()
set_intersection() algorithm
setp()
set_symmetric_difference() algorithm
set_union() algorithm
shared future
shared memory deleter
shared_ptr
shared_ptr and deleter for shared memory
shared_ptr and deleter for temporary file
shared_ptr and enable_shared_from_this
shared_ptr and weak_ptr
shared_ptr as container elements
shared_ptr motivation for weak_ptr
shuffle() algorithm
size of containers
skipws flag
sleep_for()
slice for valarrays
sort() algorithm
sort() algorithm versus stable_sort() algorithm
sort() for forward lists
sort() for lists
sorted-set algorithms
sort_heap() algorithm
sorting criterion as lambda
sorting criterion at runtime
sorting criterion defined as function
sorting criterion defined as function object
sorting with sets
sorting with sort()
splice() for lists
splice_after() for forward lists
sregex_iterator
sregex_token_iterator
stable_partition() algorithm
stable_sort() algorithm versus sort() algorithm
Stack declaration
stack example
Stack example use
Stack.hpp
steady_clock
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 conversion to wstring
string conversion to wstring usage
string example
string example with search functions
string, lowercase characters
string numeric conversions
string stream
string stream temporary
string, uppercase characters
swap_ranges() algorithm
system_clock
system_clock properties
temporary file deleter
temporary file stream
temporary string stream
this_thread
thread
time manipulator
time_get() facet
timepoint
timepoint <<
timepoint convenience functions
timepoint creation
time_put() facet
token iterator for regular expressions
to_time_t()
to_time_t and put_time() manipulator
transform()
transform() algorithm with one source range
transform() algorithm with two source ranges
transform() with strings
transform() with user-defined function object
tuple
tuple <<
tuple << usage
underflow()
uniform_int_distribution
uniform_real_distribution
unique() algorithm
unique() for forward lists
unique() for lists
unique_copy() algorithm
unique_copy() algorithm
unique_copy() algorithm to compress whitespace
unique_ptr
unordered container: bucket interface
unordered container: generic hash function
unordered map as associative array
unordered map introduction
unordered multimap as dictionary
unordered multiset example
unordered multiset insertions
unordered multiset introduction
unordered set example
unsetf()
unskipws manipulator
upper_bound() algorithm
upper_bound() for sets
uppercase characters of a string
use_facet()
use_facet()
user-defined allocator for C++11
user-defined allocator for C++11 usage
user-defined allocator for C++98/C++03
user-defined allocator for C++98/C++03 usage
user-defined class Queue
user-defined class Stack
user-defined iterator declaration
user-defined iterator example use
utf16 conversion to utf8
utf8 conversion to utf16
utf8 conversion to wstring
utf8 conversion to wstring usage
valarray
valarray: gslice
valarray: indirect array
valarray: mask_array
valarray: slice
valarray: transcendental operations
vector example
vector introduction
wait_for()
weak_ptr
whitespace compressing
whitespace compressing
widen()
wistream
wostream
wstring conversion to string
wstring conversion to string usage
wstring conversion to utf8
wstring conversion to utf8 usage
wstring_buffer
wstring_convert
xsputn()
yield()