Export (0) Print
Expand All
abs
Expand Minimize

Standard Template Library Samples

The following samples demonstrate the use of the Standard Template Library, a subset of the Standard C++ Library.

In This Section

abs

accumulate, copy, vector::push_back

adjacent_difference, vector::push_back

advance

Basic Math Functions

basic_string::append

basic_string size and resize

binary_function Structure

count

count_if

deque::assign and deque::swap

deque::begin and deque::end

deque::erase and deque::clear

deque::front and deque::back

deque::insert

deque::operator[] and deque::at

deque::push_back and deque::pop_back

deque::rbegin and deque::rend

deque::size and deque::resize

distance

exp, log, and log10

find

find_if

for_each

generate

generate_n

heap

heap (predicate version)

includes

includes (predicate version)

inner_product

inplace_merge

inplace_merge (predicate version)

iter_swap

list::assign

list::back, list::front

list::list

lower_bound

lower_bound (predicate version)

make_pair

map::insert, map::find, and map::end

max_element

max_element (predicate version)

map::max_size, clear, erase, size

merge

merge (predicate version)

min_element

min_element (predicate version)

new operator

next_permutation

next_permutation (predicate version)

nth_element

nth_element (predicate version)

Members of the numeric_limits Class

operator== and operator< deque

Pair Logical Operator

partial_sort

partial_sort_copy

partial_sort (predicate version)

partial_sort_copy (predicate version)

partial_sum

partition

prev_permutation

priority_queue functions

queue functions

random_shuffle

random_shuffle (predicate version)

remove

remove_copy

remove_copy_if

remove_if

replace

replace_copy

replace_copy_if

replace_if

reverse

reverse_copy

rotate

rotate_copy

set::(lower_, upper_)bound, equal_range

set::(key_, value_)comp

set::count

set::empty and set::clear

set::find

set::max_size

set::rbegin and set::rend

set::size

set::swap, begin, end

sqrt and pow

stack::operator==

stack::operator<

stack::size

stack::top and stack::empty

string::getline

string::operator==

string::operator>

string::operator>=

string::operator>>

string::operator<

string::operator<=

string::operator<<

string::operator+

string::operator!=

Trigonometry Functions

unary_function<> Structure

upper_bound

upper_bound (predicate version)

Vector Class, operator==

vector::empty, erase, and push_back

vector::front and vector::back

Vector Class, operator<

vector::push_back and vector::pop_back

vector::size and vector::capacity

Related Sections

Standard C++ Library Reference
Show:
© 2014 Microsoft