A.1. Library Names and Headers
A.1. 标准库名字和头文件
Our programs mostly did not show the actual #include directives needed to compile the program. As a convenience to our readers, Table A.1 lists the library names our programs used and the header in which they may be found.
本书的示例程序大多没有给出编译程序所需要的实际 #include 指示。为了方便读者阅读,表 A.1 列出了示例程序使用过的标准库名字以及包含标准库名字的头文件。
Table A.1. Standard Library Names and Headers
表 A.1. 标准库名字和头文件
Name
名字
|
Header
头文件
|
Name
名字
|
Header
头文件
|
abort
|
<cstdlib>
|
ios_base
|
<ios_base>
|
accumulate
|
<numeric>
|
isalpha
|
<cctype>
|
allocator
|
<memory>
|
islower
|
<cctype>
|
auto_ptr
|
<memory>
|
ispunct
|
<cctype>
|
back_inserter
|
<iterator>
|
isspace
|
<cctype>
|
bad_alloc
|
<new>
|
istream
|
<iostream>
|
bad_cast
|
<typeinfo>
|
istream_iterator
|
<iterator>
|
bind2nd
|
<functional>
|
istringstream
|
<sstream>
|
bitset
|
<bitset>
|
isupper
|
<cctype>
|
boolalpha
|
<iostream>
|
left
|
<iostream>
|
cerr
|
<iostream>
|
less_equal
|
<functional>
|
cin
|
<iostream>
|
list
|
<list>
|
copy
|
<algorithm>
|
logic_error
|
<stdexcept>
|
count
|
<algorithm>
|
lower_bound
|
<algorithm>
|
count_if
|
<algorithm>
|
make_pair
|
<utility>
|
cout
|
<iostream>
|
map
|
<map>
|
dec
|
<iostream>
|
max
|
<algorithm>
|
deque
|
<deque>
|
min
|
<algorithm>
|
endl
|
<iostream>
|
multimap
|
<map>
|
ends
|
<iostream>
|
multiset
|
<set>
|
equal_range
|
<algorithm>
|
negate
|
<functional>
|
exception
|
<exception>
|
noboolalpha
|
<iostream>
|
fill
|
<algorithm>
|
noshowbase
|
<iostream>
|
fill_n
|
<algorithm>
|
noshowpoint
|
<iostream>
|
find
|
<algorithm>
|
noskipws
|
<iostream>
|
find_end
|
<algorithm>
|
not1
|
<functional>
|
find_first_of
|
<algorithm>
|
nounitbuf
|
<iostream>
|
fixed
|
<iostream>
|
nouppercase
|
<iostream>
|
flush
|
<iostream>
|
nth_element
|
<algorithm>
|
for_each
|
<algorithm>
|
oct
|
<iostream>
|
front_inserter
|
<iterator>
|
of stream
|
<fstream>
|
fstream
|
<fstream>
|
ostream
|
<iostream>
|
getline
|
<string>
|
ostream_iterator
|
<iterator>
|
hex
|
<iostream>
|
ostringstream
|
<sstream>
|
ifstream
|
<fstream>
|
out_of_range
|
<stdexcept>
|
inner_product
|
<numeric>
|
pair
|
<utility>
|
inserter
|
<iterator>
|
partial_sort
|
<algorithm>
|
internal
|
<iostream>
|
plus
|
<functional>
|
priority_queue
|
<queue>
|
sqrt
|
<cmath>
|
ptrdiff_t
|
<cstddef>
|
stable_sort
|
<algorithm>
|
queue
|
<queue>
|
stack
|
<stack>
|
range_error
|
<stdexcept>
|
strcmp
|
<cstring>
|
replace
|
<algorithm>
|
strcpy
|
<cstring>
|
replace_copy
|
<algorithm>
|
string
|
<string>
|
reverse_iterator
|
<iterator>
|
stringstream
|
<sstream>
|
right
|
<iostream>
|
strlen
|
<cstring>
|
runtime_error
|
<stdexcept>
|
strncpy
|
<cstring>
|
scientific
|
<iostream>
|
terminate
|
<exception>
|
set
|
<set>
|
tolower
|
<cctype>
|
set_difference
|
<algorithm>
|
toupper
|
<cctype>
|
set_intersection
|
<algorithm>
|
type_info
|
<typeinfo>
|
set_union
|
<algorithm>
|
unexpected
|
<exception>
|
setfill
|
<iomanip>
|
uninitialized_copy
|
<memory>
|
setprecision
|
<iomanip>
|
unitbuf
|
<iostream>
|
setw
|
<iomanip>
|
unique
|
<algorithm>
|
showbase
|
<iostream>
|
unique_copy
|
<algorithm>
|
showpoint
|
<iostream>
|
upper_bound
|
<algorithm>
|
size_t
|
<cstddef>
|
uppercase
|
<iostream>
|
skipws
|
<iostream>
|
vector
|
<vector>
|
sort
|
<algorithm>
|
|
|
|