1S01EC14882:2003(曰 20.3 2 Arithmetic operations 367 2033 Comparisons 368 20 3.4 Logical operations 369 2035 Negators. 369 2036 Binders. 4370 20 3.6.I Claess template binder1st ........... .370 20362 bindlst. 370 20.3.6 3 Class template binder2nd........... .370 20364 bind2nd 371 203.7 Adaptors for poimters to functions..... 37 2038 Adapors for pointers to members...... 372 20.4 Memory 374 20.4.1 The default allocacor 374 204.1.1 allocator members 4444444444444444 20.4.12 allocator globals. 376 20.4 2 Raw storage iteror 376 2043 Temporary buffers 377 20.4.4 Specialined algorithms. 377 2044.1 uninitialized copy 377 20442 uninitfaliged_fill... 4378 20443 uninitialized_fill_n 378 20.4 5 Class template auto ptr...... 378 20.4 5.1 auto ptr constructors. 379 204 52 auto ptr members. 379 20.4 53 auto ptr conversions 380 2046 CLihrary 380 20_5 Dale and time 381 21 Strings libeary a4383 21.1 Character traits. 383 21.1.1 Character traits requirements. .383 21.12 traits typedefs. 385 21.13 char_traits specializations..... 385 21.13.1 struet char_traitscehar>. 38S 21.132 struet char traitacwchar t> .386 212 String casses 387 213 Class template basic_string. 389 213.1 basic_string constructors. .393 2132 basie_atring itermtor support. 59% 2133 basic string capucity.......... 396 213.4 basic string element access....... 398 2135 baaie atring modifiers .398 21351 basie_atring::operator+- 398 21352 basic string::append........ 398 21353 basie atring::assign...... 399 21354 basic_string::insert 400 21355 basic string::erase................ 401 21356 basic_string:replace.... 401 2135.7 basie_atring::copy... ,402 ISOnEC 2003-All rights reserved XVISO/IEC 14882:2003(E) © ISO/IEC 2003 — All rights reserved xv 20.3.2 Arithmetic operations .....................................................................................................................367 20.3.3 Comparisons ...................................................................................................................................368 20.3.4 Logical operations ..........................................................................................................................369 20.3.5 Negators ..........................................................................................................................................369 20.3.6 Binders ............................................................................................................................................370 20.3.6.1 Class template binder1st .......................................................................................................370 20.3.6.2 bind1st.....................................................................................................................................370 20.3.6.3 Class template binder2nd .......................................................................................................370 20.3.6.4 bind2nd.....................................................................................................................................371 20.3.7 Adaptors for pointers to functions ..................................................................................................371 20.3.8 Adaptors for pointers to members ..................................................................................................372 20.4 Memory..............................................................................................................................................374 20.4.1 The default allocator .......................................................................................................................374 20.4.1.1 allocator members ................................................................................................................375 20.4.1.2 allocator globals ...................................................................................................................376 20.4.2 Raw storage iterator ........................................................................................................................376 20.4.3 Temporary buffers ..........................................................................................................................377 20.4.4 Specialized algorithms ....................................................................................................................377 20.4.4.1 uninitialized_copy..........................................................................................................377 20.4.4.2 uninitialized_fill..........................................................................................................378 20.4.4.3 uninitialized_fill_n .....................................................................................................378 20.4.5 Class template auto_ptr.............................................................................................................378 20.4.5.1 auto_ptr constructors..............................................................................................................379 20.4.5.2 auto_ptr members ..................................................................................................................379 20.4.5.3 auto_ptr conversions ..............................................................................................................380 20.4.6 C Library .........................................................................................................................................380 20.5 Date and time .....................................................................................................................................381 21 Strings library .......................................................................................................................................383 21.1 Character traits ...................................................................................................................................383 21.1.1 Character traits requirements ..........................................................................................................383 21.1.2 traits typedefs ..................................................................................................................................385 21.1.3 char_traits specializations .....................................................................................................385 21.1.3.1 struct char_traits<char>............................................................................................385 21.1.3.2 struct char_traits<wchar_t>.....................................................................................386 21.2 String classes .....................................................................................................................................387 21.3 Class template basic_string......................................................................................................389 21.3.1 basic_string constructors .......................................................................................................393 21.3.2 basic_string iterator support ..................................................................................................396 21.3.3 basic_string capacity .............................................................................................................396 21.3.4 basic_string element access ...................................................................................................398 21.3.5 basic_string modifiers ...........................................................................................................398 21.3.5.1 basic_string::operator+=............................................................................................398 21.3.5.2 basic_string::append .....................................................................................................398 21.3.5.3 basic_string::assign .....................................................................................................399 21.3.5.4 basic_string::insert .....................................................................................................400 21.3.5.5 basic_string::erase........................................................................................................401 21.3.5.6 basic_string::replace...................................................................................................401 21.3.5.7 basic_string::copy ..........................................................................................................402