logo资料库

c++标准库扩展 TR1.pdf

第1页 / 共194页
第2页 / 共194页
第3页 / 共194页
第4页 / 共194页
第5页 / 共194页
第6页 / 共194页
第7页 / 共194页
第8页 / 共194页
资料共194页,剩余部分请下载后查看
Contents
List of Tables
1 General
1.1 Relation to C++ Standard Library Introduction
1.2 Categories of extensions
1.3 Namespaces and headers
2 General Utilities
2.1 Reference wrappers
2.1.1 Additions to header synopsis
2.1.2 Class template reference_wrapper
2.1.2.1 reference_wrapper construct/copy/destroy
2.1.2.2 reference_wrapper assignment
2.1.2.3 reference_wrapper access
2.1.2.4 reference_wrapper invocation
2.1.2.5 reference_wrapper helper functions
2.2 Smart pointers
2.2.1 Additions to header synopsis
2.2.2 Class bad_weak_ptr
2.2.3 Class template shared_ptr
2.2.3.1 shared_ptr constructors
2.2.3.2 shared_ptr destructor
2.2.3.3 shared_ptr assignment
2.2.3.4 shared_ptr modifiers
2.2.3.5 shared_ptr observers
2.2.3.6 shared_ptr comparison
2.2.3.7 shared_ptr I/O
2.2.3.8 shared_ptr specialized algorithms
2.2.3.9 shared_ptr casts
2.2.3.10 get_deleter
2.2.4 Class template weak_ptr
2.2.4.1 weak_ptr constructors
2.2.4.2 weak_ptr destructor
2.2.4.3 weak_ptr assignment
2.2.4.4 weak_ptr modifiers
2.2.4.5 weak_ptr observers
2.2.4.6 weak_ptr comparison
2.2.4.7 weak_ptr specialized algorithms
2.2.5 Class template enable_shared_from_this
3 Function objects
3.1 Definitions
3.2 Additions to synopsis
3.3 Requirements
3.4 Function return types
3.5 Function template mem_fn
3.6 Function object binders
3.6.1 Class template is_bind_expression
3.6.2 Class template is_placeholder
3.6.3 Function template bind
3.6.4 Placeholders
3.7 Polymorphic function wrappers
3.7.1 Class bad_function_call
3.7.1.1 bad_function_call constructor
3.7.2 Class template function
3.7.2.1 function construct/copy/destroy
3.7.2.2 function modifiers
3.7.2.3 function capacity
3.7.2.4 function invocation
3.7.2.5 function target access
3.7.2.6 undefined operators
3.7.2.7 null pointer comparison operators
3.7.2.8 specialized algorithms
4 Metaprogramming and type traits
4.1 Requirements
4.2 Header synopsis
4.3 Helper classes
4.4 General Requirements
4.5 Unary Type Traits
4.5.1 Primary Type Categories
4.5.2 Composite type traits
4.5.3 Type properties
4.6 Relationships between types
4.7 Transformations between types
4.7.1 Const-volatile modifications
4.7.2 Reference modifications
4.7.3 Array modifications
4.7.4 Pointer modifications
4.8 Other transformations
4.9 Implementation requirements
5 Numerical facilities
5.1 Random number generation
5.1.1 Requirements
5.1.2 Header synopsis
5.1.3 Class template variate_generator
5.1.4 Random number engine class templates
5.1.4.1 Class template linear_congruential
5.1.4.2 Class template mersenne_twister
5.1.4.3 Class template subtract_with_carry
5.1.4.4 Class template subtract_with_carry_01
5.1.4.5 Class template discard_block
5.1.4.6 Class template xor_combine
5.1.5 Engines with predefined parameters
5.1.6 Class random_device
5.1.7 Random distribution class templates
5.1.7.1 Class template uniform_int
5.1.7.2 Class bernoulli_distribution
5.1.7.3 Class template geometric_distribution
5.1.7.4 Class template poisson_distribution
5.1.7.5 Class template binomial_distribution
5.1.7.6 Class template uniform_real
5.1.7.7 Class template exponential_distribution
5.1.7.8 Class template normal_distribution
5.1.7.9 Class template gamma_distribution
5.2 Mathematical special functions
5.2.1 Additions to header synopsis
5.2.1.1 associated Laguerre polynomials
5.2.1.2 associated Legendre functions
5.2.1.3 beta function
5.2.1.4 (complete) elliptic integral of the first kind
5.2.1.5 (complete) elliptic integral of the second kind
5.2.1.6 (complete) elliptic integral of the third kind
5.2.1.7 confluent hypergeometric functions
5.2.1.8 regular modified cylindrical Bessel functions
5.2.1.9 cylindrical Bessel functions (of the first kind)
5.2.1.10 irregular modified cylindrical Bessel functions
5.2.1.11 cylindrical Neumann functions
5.2.1.12 (incomplete) elliptic integral of the first kind
5.2.1.13 (incomplete) elliptic integral of the second kind
5.2.1.14 (incomplete) elliptic integral of the third kind
5.2.1.15 exponential integral
5.2.1.16 Hermite polynomials
5.2.1.17 hypergeometric functions
5.2.1.18 Laguerre polynomials
5.2.1.19 Legendre polynomials
5.2.1.20 Riemann zeta function
5.2.1.21 spherical Bessel functions (of the first kind)
5.2.1.22 spherical associated Legendre functions
5.2.1.23 spherical Neumann functions
5.2.2 Additions to header synopsis
6 Containers
6.1 Tuple types
6.1.1 Header synopsis
6.1.2 Additions to header synopsis
6.1.3 Class template tuple
6.1.3.1 Construction
6.1.3.2 Tuple creation functions
6.1.3.3 Valid expressions for tuple types
6.1.3.4 Element access
6.1.3.5 Relational operators
6.1.4 Pairs
6.2 Fixed size array
6.2.1 Header synopsis
6.2.2 Class template array
6.2.2.1 array constructors, copy, and assignment
6.2.2.2 array specialized algorithms
6.2.2.3 array size
6.2.2.4 Zero sized arrays
6.2.2.5 Tuple interface to class template array
6.3 Unordered associative containers
6.3.1 Unordered associative container requirements
6.3.1.1 Exception safety guarantees
6.3.2 Additions to header synopsis
6.3.3 Class template hash
6.3.4 Unordered associative container classes
6.3.4.1 Header synopsis
6.3.4.2 Header synopsis
6.3.4.3 Class template unordered_set
6.3.4.3.1 unordered_set constructors
6.3.4.3.2 unordered_set swap
6.3.4.4 Class template unordered_map
6.3.4.4.1 unordered_map constructors
6.3.4.4.2 unordered_map element access
6.3.4.4.3 unordered_map swap
6.3.4.5 Class template unordered_multiset
6.3.4.5.1 unordered_multiset constructors
6.3.4.5.2 unordered_multiset swap
6.3.4.6 Class template unordered_multimap
6.3.4.6.1 unordered_multimap constructors
6.3.4.6.2 unordered_multimap swap
7 Regular expressions
7.1 Definitions
7.2 Requirements
7.3 Regular expressions summary
7.4 Header synopsis
7.5 Namespace tr1::regex_constants
7.5.1 Bitmask Type syntax_option_type
7.5.2 Bitmask Type regex_constants::match_flag_type
7.5.3 Implementation defined error_type
7.6 Class regex_error
7.7 Class template regex_traits
7.8 Class template basic_regex
7.8.1 basic_regex constants
7.8.2 basic_regex constructors
7.8.3 basic_regex assign
7.8.4 basic_regex constant operations
7.8.5 basic_regex locale
7.8.6 basic_regex swap
7.8.7 basic_regex non-member functions
7.8.7.1 basic_regex non-member swap
7.9 Class template sub_match
7.9.1 sub_match members
7.9.2 sub_match non-member operators
7.10 Class template match_results
7.10.1 match_results constructors
7.10.2 match_results size
7.10.3 match_results element access
7.10.4 match_results reformatting
7.10.5 match_results allocator
7.10.6 match_results swap
7.11 Regular expression algorithms
7.11.1 exceptions
7.11.2 regex_match
7.11.3 regex_search
7.11.4 regex_replace
7.12 Regular expression Iterators
7.12.1 Class template regex_iterator
7.12.1.1 regex_iterator constructors
7.12.1.2 regex_iterator comparisons
7.12.1.3 regex_iterator dereference
7.12.1.4 regex_iterator increment
7.12.2 Class template regex_token_iterator
7.12.2.1 regex_token_iterator constructors
7.12.2.2 regex_token_iterator comparisons
7.12.2.3 regex_token_iterator dereference
7.12.2.4 regex_token_iterator increment
7.13 Modified ECMAScript regular expression grammar
8 C compatibility
8.1 Additions to header
8.1.1 Synopsis
8.1.2 Function acos
8.1.3 Function asin
8.1.4 Function atan
8.1.5 Function acosh
8.1.6 Function asinh
8.1.7 Function atanh
8.1.8 Function fabs
8.1.9 Additional Overloads
8.2 Header
8.3 Header
8.4 Additions to header
8.4.1 Synopsis
8.4.2 Function isblank
8.5 Additions to header
8.6 Header
8.6.1 Synopsis
8.6.2 Definitions
8.7 Header
8.8 Additions to header
8.9 Additions to header
8.10 Additions to header
8.10.1 Synopsis
8.10.2 Function hexfloat
8.11 Header
8.11.1 Synopsis
8.11.2 Definitions
8.12 Header
8.13 Additions to header
8.14 Additions to header
8.15 Additions to header
8.16 Additions to header
8.16.1 Synopsis
8.16.2 Definitions
8.16.3 Function template definitions
8.16.4 Additional overloads
8.17 Additions to header
8.18 Additions to header
8.19 Additions to header
8.20 The header
8.21 The header
8.22 The header
8.22.1 Synopsis
8.22.2 Definitions
8.23 The header
8.24 Additions to header
8.24.1 Synopsis
8.24.2 Definitions
8.24.3 Additional format specifiers
8.24.4 Additions to header
8.25 Additions to header
8.25.1 Synopsis
8.25.2 Definitions
8.25.3 Function abs
8.25.4 Function div
8.26 Additions to header
8.27 Header
8.28 Header
8.29 Additions to header
8.30 Additions to header
8.30.1 Synopsis
8.30.2 Definitions
8.30.3 Additional wide format specifiers
8.31 Additions to header
8.32 Additions to header
8.32.1 Synopsis
8.32.2 Function iswblank
8.33 Additions to header
A Implementation quantities
Bibliography
Index
ISO/IEC PDTR 19768 Doc No: Date: Reply to: N1745=05-0005 2005-01-17 Matt Austern austern@apple.com Proposed Draft Technical Report on C++ Library Extensions
ii ISO/IEC PDTR 19768
Contents Contents List of Tables 1 General 1.1 Relation to C++ Standard Library Introduction . . 1.2 Categories of extensions . 1.3 Namespaces and headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 General Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.2.1 2.1.2.2 2.1.2.3 2.1.2.4 2.1.2.5 2.2 Smart pointers . 2.1 Reference wrappers . . 2.1.1 Additions to header synopsis . 2.1.2 Class template reference_wrapper . . . . . . . . . . . . reference_wrapper construct/copy/destroy . . . . . . reference_wrapper assignment . . . . reference_wrapper access . . . . . reference_wrapper invocation . . . . reference_wrapper helper functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . shared_ptr constructors . . . . . . shared_ptr destructor . . . . . . . . shared_ptr assignment . . . . . shared_ptr modifiers . . . . . . . shared_ptr observers . . . . . . . shared_ptr comparison . . . . shared_ptr I/O . . . . . . . . shared_ptr specialized algorithms shared_ptr casts . . . . . . . . . . . . . . . . . . . . 2.2.1 Additions to header synopsis . . . 2.2.2 Class bad_weak_ptr . . 2.2.3 Class template shared_ptr . . . . . . . . . 2.2.3.1 2.2.3.2 2.2.3.3 2.2.3.4 2.2.3.5 2.2.3.6 2.2.3.7 2.2.3.8 2.2.3.9 2.2.3.10 get_deleter . . . . weak_ptr constructors . 2.2.4 Class template weak_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.4.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii xi 1 1 1 1 3 3 3 3 4 5 5 5 5 6 6 7 7 9 10 10 11 11 12 13 13 13 14 14 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTENTS CONTENTS iv 2.2.4.2 2.2.4.3 2.2.4.4 2.2.4.5 2.2.4.6 2.2.4.7 . . . . . . 2.2.5 Class template enable_shared_from_this . . . . weak_ptr destructor . weak_ptr assignment . . . . . weak_ptr modifiers . . weak_ptr observers . . . . weak_ptr comparison . . weak_ptr specialized algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Function objects 3.1 Definitions . . 3.2 Additions to synopsis . . . 3.3 Requirements . . . 3.4 Function return types . . 3.5 Function template mem_fn . . . . 3.6 Function object binders . . . . . . . 3.6.1 Class template is_bind_expression . . 3.6.2 Class template is_placeholder . 3.6.3 . . . . 3.6.4 . . . . . . . . . . . . . . . . bad_function_call constructor . . . . 3.7.1 Class bad_function_call . Function template bind . . Placeholders . . 3.7 Polymorphic function wrappers . 3.7.2 Class template function . 3.7.1.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.7.2.1 3.7.2.2 3.7.2.3 3.7.2.4 3.7.2.5 3.7.2.6 3.7.2.7 3.7.2.8 . . . . . . . . function construct/copy/destroy . . . . function modifiers . . . function capacity . . . function invocation . . . . function target access . undefined operators . . . . null pointer comparison operators . . specialized algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 15 16 16 16 17 17 19 19 19 20 21 22 22 22 23 23 24 24 24 25 25 26 28 28 28 28 29 29 29 31 31 31 33 33 34 34 35 35 37 38 38 39 39 4 Metaprogramming and type traits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Primary Type Categories . 4.1 Requirements . . 4.2 Header synopsis . 4.3 Helper classes . . . 4.4 General Requirements 4.5 Unary Type Traits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7.1 Const-volatile modifications . . 4.7.2 Reference modifications . . . 4.7.3 Array modifications . . 4.5.1 4.5.2 Composite type traits . . 4.5.3 Type properties . . . . . 4.6 Relationships between types . 4.7 Transformations between types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ISO/IEC PDTR 19768
v CONTENTS CONTENTS 4.7.4 Pointer modifications . . 4.8 Other transformations . 4.9 . Implementation requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Numerical facilities 5.1 Random number generation . . . . . . 5.1.1 Requirements . . 5.1.2 Header synopsis . . 5.1.3 Class template variate_generator . 5.1.4 Random number engine class templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 40 40 43 43 43 47 48 50 50 51 53 55 56 57 59 59 61 61 62 62 63 64 64 65 66 67 67 67 71 71 71 72 72 72 73 73 73 74 74 74 75 75 75 75 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.5 Engines with predefined parameters . 5.1.6 Class random_device . . 5.1.7 Random distribution class templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.4.1 5.1.4.2 5.1.4.3 5.1.4.4 5.1.4.5 5.1.4.6 5.1.7.1 5.1.7.2 5.1.7.3 5.1.7.4 5.1.7.5 5.1.7.6 5.1.7.7 5.1.7.8 5.1.7.9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Class template linear_congruential . . . . . Class template mersenne_twister . . . . . Class template subtract_with_carry . . . . . Class template subtract_with_carry_01 . . . . . . Class template discard_block . . . . . . . Class template xor_combine . . . . . . . . . . . . . . . . . . . . . . . . . . Class template uniform_int . . . . . . Class bernoulli_distribution . . . . . Class template geometric_distribution . . . . . Class template poisson_distribution . . . . . . Class template binomial_distribution . . . Class template uniform_real . . . . . . Class template exponential_distribution . . . . Class template normal_distribution . . . . . . Class template gamma_distribution . . . . . . . . . . . . . . . . 5.2.1.1 . . . . associated Laguerre polynomials . . . 5.2.1.2 . . . . . associated Legendre functions . . . 5.2.1.3 . . . beta function . . . . . . 5.2.1.4 . (complete) elliptic integral of the first kind . . . 5.2.1.5 (complete) elliptic integral of the second kind . . . 5.2.1.6 . . (complete) elliptic integral of the third kind . . . 5.2.1.7 . confluent hypergeometric functions . . . . . 5.2.1.8 . regular modified cylindrical Bessel functions . . . 5.2.1.9 cylindrical Bessel functions (of the first kind) . . . 5.2.1.10 irregular modified cylindrical Bessel functions . . . . 5.2.1.11 cylindrical Neumann functions . . . 5.2.1.12 (incomplete) elliptic integral of the first kind . . . 5.2.1.13 (incomplete) elliptic integral of the second kind . . . . 5.2.1.14 (incomplete) elliptic integral of the third kind . . . 5.2.1.15 exponential integral 5.2.1.16 Hermite polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ISO/IEC PDTR 19768 5.2 Mathematical special functions . . 5.2.1 Additions to header synopsis . . . . . . .
CONTENTS . 5.2.1.17 hypergeometric functions . . . 5.2.1.18 Laguerre polynomials . . . 5.2.1.19 Legendre polynomials . 5.2.1.20 Riemann zeta function . . . 5.2.1.21 spherical Bessel functions (of the first kind) . 5.2.1.22 spherical associated Legendre functions . . 5.2.1.23 spherical Neumann functions . . . . 5.2.2 Additions to header synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 Tuple types . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1.4 Element access . . Relational operators . . . . . 6.2 Fixed size array . . . . . . . . . 6.2.1 Header synopsis . . 6.2.2 Class template array . . . . . 6.2.2.1 6.2.2.2 6.2.2.3 6.2.2.4 6.2.2.5 . . 6.1.1 Header synopsis . . 6.1.2 Additions to header synopsis . 6.1.3 Class template tuple . . . . . . Construction . . Tuple creation functions . . . 6.1.3.1 6.1.3.2 . 6.1.3.3 Valid expressions for tuple types 6.1.3.4 . . 6.1.3.5 . Pairs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . array constructors, copy, and assignment . . array specialized algorithms . . . array size . . . . Zero sized arrays . . . . Tuple interface to class template array . . . . . . . . . . . . . . . . . . . . . 6.3.4.1 Header synopsis . . . 6.3.4.2 Header synopsis . . 6.3.4.3 . . . unordered_set constructors . . unordered_set swap . . . . Class template unordered_map . unordered_map constructors . . unordered_map element access . unordered_map swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . unordered_multiset constructors . unordered_multiset swap . . . . . Class template unordered_multiset . . 6.3.1 Unordered associative container requirements . . 6.3.2 Additions to header synopsis . . . 6.3.3 Class template hash . . 6.3.4 Unordered associative container classes . . . Class template unordered_set . 6.3 Unordered associative containers . Exception safety guarantees . 6.3.4.4.1 6.3.4.4.2 6.3.4.4.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3.4.3.1 6.3.4.3.2 6.3.4.5.1 6.3.4.5.2 . . . . . . . . . . . . . . . . . 6.3.4.4 6.3.4.5 6.3.1.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ISO/IEC PDTR 19768 CONTENTS vi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 76 76 77 77 77 78 78 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 79 . . . . . . 79 . . . . . . 80 . . . . . . 81 . . . . . . 81 . . . . . . 82 . . . . . . 83 . . . . . . 84 . . . . . . 84 . . . . . . 85 . . . . . . 86 . . . . . . 86 . . . . . . 86 . . . . 88 . . . . 88 . . . . 88 . . . . 88 . . . . 88 . . . . 89 . . . . 89 . . . . 94 . . . . 94 . . . . 95 . . . . 95 . . . . 95 . . . . 96 . . . . 97 . . . . 99 . . . . 99 . . . . . . . . 99 . . . 102 . . . . 102 . . . . . 102 . . . 103 . . . . 105 . . . . . 105 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vii CONTENTS 6.3.4.6 Class template unordered_multimap . . unordered_multimap constructors . unordered_multimap swap . . 6.3.4.6.1 6.3.4.6.2 . . . . . . . . . . . . . . . . . . . . . . . . CONTENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 . . . 108 . . . 108 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 . . . 109 . . . . . 109 . . . . . 111 . . . . . 111 . . . . . 117 . . . . . 117 . . . . . 118 . . . . . . 120 . . . . . 121 . . . . . 121 . . . . 123 . . . . . 125 . . . . . 125 . . . . . 127 . . . . . 127 . . . . . 128 . . . . . 128 . . . . . . . 128 . . . . 128 . . . . 128 . . . . . . . 129 . . . . 129 . . . . . . . 134 . . . . . . . . 135 . . . . . . . . . 136 . . . . . . . 136 . . . . . . . . 137 . . . . . . . . 137 . . . . . . . . . 138 . . . . . . . 138 . . . . . . . . 138 . . . . . . . . 138 . . . . . . . . 140 . . . . . . . . . 141 . . . . . . . 142 . . . . . . . . 142 . . . . . . . . 143 . . . . . . . . . . . . . 143 . . . 144 . . . . . . . . 144 . . . . . . . . . . . . . 145 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.9 Class template sub_match . 7.8.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 Implementation defined error_type . 7 Regular expressions . . 7.1 Definitions . . . . 7.2 Requirements . . . 7.3 Regular expressions summary . . 7.4 Header synopsis . 7.5 Namespace tr1::regex_constants . . . . . . . . . 7.6 Class regex_error . . 7.7 Class template regex_traits . 7.8 Class template basic_regex . . . . . . . . . . . . . . . . . . . . . . . basic_regex constants . . . . . . basic_regex constructors . . . . basic_regex assign . . . . . . basic_regex constant operations . . . . basic_regex locale . . . basic_regex swap . . basic_regex non-member functions . . 7.8.7.1 . . . . . . . . . . . . . . . . 7.5.1 Bitmask Type syntax_option_type . . . 7.5.2 Bitmask Type regex_constants::match_flag_type . . 7.5.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . basic_regex non-member swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.12.1.1 regex_iterator constructors . 7.12.1.2 regex_iterator comparisons . . . . . . 7.12.1.3 regex_iterator dereference . . 7.12.1.4 regex_iterator increment . 7.12.2 Class template regex_token_iterator . . . . . . sub_match members . sub_match non-member operators . . 7.10 Class template match_results . . . . . 7.10.1 match_results constructors . . 7.10.2 match_results size . . . . 7.10.3 match_results element access . . . . 7.10.4 match_results reformatting . . . . 7.10.5 match_results allocator 7.10.6 match_results swap . . . . . . . 7.11 Regular expression algorithms . . . . . . . . . . . . . . . . . . . . . 7.12.1 Class template regex_iterator . . 7.11.1 exceptions . . 7.11.2 regex_match . 7.11.3 regex_search . . 7.11.4 regex_replace . 7.12 Regular expression Iterators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.9.1 7.9.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ISO/IEC PDTR 19768
CONTENTS 7.12.2.1 regex_token_iterator constructors . 7.12.2.2 regex_token_iterator comparisons . 7.12.2.3 regex_token_iterator dereference . . 7.12.2.4 regex_token_iterator increment . . . . 7.13 Modified ECMAScript regular expression grammar . . . . . . . . . . . 8 C compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Synopsis 8.4.1 8.4.2 . . . . . . . . Synopsis . Function isblank . . . . . . Synopsis . Function acos . . Function asin . Function atan . . Function acosh . Function asinh . Function atanh . Function fabs . . . 8.1.1 . 8.1.2 . 8.1.3 . 8.1.4 . 8.1.5 . 8.1.6 . 8.1.7 8.1.8 . 8.1.9 Additional Overloads . . . . . . . . . . . . . 8.2 Header . 8.3 Header . . 8.4 Additions to header . . . . 8.1 Additions to header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.5 Additions to header . . . 8.6 Header . . . . . . 8.6.1 . . . 8.6.2 Definitions . . 8.7 Header . . . 8.8 Additions to header . . . 8.9 Additions to header . . 8.10 Additions to header . . . . 8.10.1 Synopsis . . . 8.10.2 Function hexfloat . . . . . . . . . . . . . 8.12 Header . . . . . 8.13 Additions to header . . 8.14 Additions to header . . 8.15 Additions to header . . . . . . . 8.16 Additions to header . . . . . 8.16.1 Synopsis 8.16.2 Definitions . . . . 8.16.3 Function template definitions . . 8.16.4 Additional overloads . . . . . 8.17 Additions to header . . 8.18 Additions to header . 8.11 Header . . . . . 8.11.1 Synopsis 8.11.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ISO/IEC PDTR 19768 CONTENTS viii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 . . . 147 . . . 147 . . . 147 . . . 148 151 . . . 151 . . . . . 151 . . . . . 151 . . . . . 151 . . . . . 152 . . . . . 152 . . . . . 152 . . . . . 152 . . . . . 152 . . . . . . 152 . . . . . 153 . . . . . 153 . . . . 153 . . . . . 153 . . . . . . 153 . . . . 153 . . . . . 153 . . . . . 153 . . . . . . . 154 . . . 154 . . . . . 154 . . . . . 154 . . . . . . . 154 . . . 154 . . . . . . . 154 . . . . 155 . . . . . . 155 . . . 155 . . . . . 155 . . . . . 156 . . . . . 156 . . . . . . . 156 . . . 156 . . . . . 156 . . . . . 160 . . . . . . . 160 . . . 161 . . . . . 162 . . . . . . . 162 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
分享到:
收藏