0

the c standard template library p j plauger pdf

Standard Template Library

Standard Template Library

Kỹ thuật lập trình

... specified typeGeneric algorithms act on objects in containers Iterators provide access to objects in the containers yet hide the internal structure of the containerSlide 18- 17Copyright ... container.rp++ moves the reverse iterator rp towards the end of the container. reverse_iterator rp; for(rp = c. rbegin( ); rp != c. rend( ); rp++) process_item_at (rp); Object c is a container ... provide the basic operationsBidirectional iterators provide the basic operations and the operators (pre- and postfix) to move to the previous data item. Random access iterators provide The...
  • 56
  • 447
  • 0
The New C Standard- P8

The New C Standard- P8

Kỹ thuật lập trình

... token), whether or notEis amacro name.Commentary Standard C specifies a token-based preprocessor. The original K&R preprocessor specification could beinterpreted as a token-based or character-based ... group might include— The secretary put the paper clips in the envelope”, while the other group would see a different sentence relating to secretaries and envelopes The secretary licked the ... string matching problem is NP-complete,[881]limiting the comparison to known conceptual units significantly reduces the computational cost of checking adherence.Rev792.4A newly declared identifier...
  • 100
  • 427
  • 0
The New C Standard- P9

The New C Standard- P9

Kỹ thuật lập trình

... issue. C9 0No such requirement was explicitly specified in the C9 0 Standard. C ++Like C9 0, there is no such requirement in the C ++ Standard. Recommended practice859 The implementation should produce ... 00A0 represent characters in the basicsource character set. The exceptions listed enumerate characters that are in the Ascii character set, but notin the basic source character set. The ranges ... practice subjects performance not only improved but became digit-independent.This is consistent with subjects recalling the answer from memory; the task had become automatic. The practice group...
  • 100
  • 301
  • 0
The New C Standard- P10

The New C Standard- P10

Kỹ thuật lập trình

... for objects. Its usage also specifies the type of the allocated object. The C library is also included in the C ++ Standard, providing access to the mallocandcalloc library functions (which do ... statically,10* the effective type of the object being copied here.11*/12 memcpy(new_obj _p, obj _p, obj_size);1314 return new_obj _p; 15 }959For all other accesses to an object having no declared type, ... attempt to work out whichJune 24, 2009 v 1.26.5 Expressions940S1shevplikednp the manclthatvpvisitednp the jewelerclthatvpmadenp the ringclthatvpwonnp the prizeclthatvpwasgiv...
  • 100
  • 384
  • 0
The New C Standard- P11

The New C Standard- P11

Kỹ thuật lập trình

... thenvaluecan be cast to type T).Common Implementationsgccsupports the casting of scalar types to union types. The scalar type must have the same type as one of the members of the union type. The cast ... from the type of the operand.CommentaryIf an object appears as the operand, its declared type is used, not its effective type. The operand is also aspecial case in that some implicit conversions ... object type), the type of the compound literal is that specified by the type name.CommentaryPresumably this is the declared type of the unnamed object initialized by the initializer list and therefore...
  • 100
  • 309
  • 0
The New C Standard- P12

The New C Standard- P12

Kỹ thuật lập trình

... depend on whether the two pointershave compatible types.Given the declarationsconst void* c_ vp;void*vp;const int* c_ ip;volatile int*v_ip;int*ip;const char* c_ cp; the third column ... && ptr-to 2.2other-types && other-types 12.8 int && char 1.8other-types || other-types 8.4 int || _long 1.7ptr-to && int 4.5 int && _int 1.3char && ... operand. The C ++ Standard only supports an implicit conversion when the left operand has a pointer tovoidtype,4.1 0p2 .1 char*pc;2 void*pv;34 void f(void)5 {6 pc=pv; /*does not affect the...
  • 100
  • 293
  • 0
The New C Standard- P13

The New C Standard- P13

Kỹ thuật lập trình

... through the use of a cast operator (e.g.,(constlong)1). C ++ The C ++ Standard also associates properties of qualified types with rvalues (3.1 0p3 ). Such cases apply toconstructs that are C ++speci c ... Several importantoptimization techniques are based on the principle of “cacheing”: under certain circumstances the compilercan remember the last value accessed (read or written) from a location, ... sizeof(struct T) }; /*sizeof a completed type.*/In the second definition the closing} (the one before the x) completes the type and the sizeofoperator canbe applied to the type.1403A...
  • 100
  • 415
  • 0
The New C Standard- P14

The New C Standard- P14

Kỹ thuật lập trình

... how the current object maps to the object being initialized. Some of this knowledge is encoded in the extensiveexamples provided in the Standard. C9 0 The concept of current object is new in C9 9. C ++ The ... in C9 9. C ++ The concept of current object is new in C9 9 and is not specified in the C ++ Standard. It is not neededbecause the ordering of the initializer is specified (and the complications ... define the concept of compatible type, it requires types to be the same. If one631 compati-ble typeifparameter type is an enumerated type and the corresponding parameter type is the corresponding...
  • 100
  • 359
  • 0
The New C Standard- P15

The New C Standard- P15

Kỹ thuật lập trình

... will depend on what phase of its life cycle a program is in, the current commercial environment,and technical factors such as the product development environment and the product testing procedures ... asignificant performance impact. The main techniques used by processor vendors to reduce the impact ofstalls are discussed in the following C sentences.One of the design principles of RISC was ... instruction pipeline). Optimal performance requires that this pipeline be kept filled withprocessorpipeline0instructions. Jump statements (or rather the machine code generated to implement them)...
  • 100
  • 436
  • 0
The New C Standard- P16

The New C Standard- P16

Kỹ thuật lập trình

... the non-placemarker preprocessing token.CommentaryThis specification handles the special case of an argument containing no preprocessing tokens.1982 EXAMPLEplacemarker C9 0 The concept of placemarker ... internally. The need for a placemarker preprocessing tokenoccurs because the ## operator does not cross replacement boundaries. C9 0 The explicitly using the concept of a placemarker preprocessing ... handled specially: concatenation of two placemarkers results inplacemarkerpreprocessora single placemarker preprocessing token, and concatenation of a placemarker with a non-placemarkerpreprocessing...
  • 112
  • 330
  • 0
Tài liệu luận văn

Tài liệu luận văn "Nâng cao vị thế của doanh nghiệp nhà nước Việt Nam trong tiến trình hội nhập tổ chức thương mại thế giới WTO " doc

Báo cáo khoa học

... qu c tế đã đặt ra c c vấn đề b c x c của c c DNNN c n đư c giải quyết để c c DNNN ti p t c g p phần th c đẩy đất nư c phát triển. Yêu c u đặt ra đối với c c DNNN ta hiện nay là phải s p x p ... h p t c để c ng phát triển ngày c ng trở thành đòi hỏi b c x c của c c dân t cc cc trên thế giới, c cc này đều c môi trường hoà bình, ổn định và th c hiện chính sách mở c a c c ... nư c thành viên trong khuôn khổ c a hệ thống thương mại đa phương phù h p với c c nguyên t c cơ bản c a c ng ph p qu c tế, đảm bảo cho c cc đang phát triển đ c biệt là c cc kém phát...
  • 16
  • 573
  • 0
Tài liệu The New C Standard- P1 docx

Tài liệu The New C Standard- P1 docx

Kỹ thuật lập trình

... in certain, application-speci c domains where the computations have a natural mappingto multiple processors. The cost of the processor is often a significant percentage of the completecomputing ... used in PC-like computers.Modern, performance-based processors have two or more caches. A level 1 cache (called the L1 cache),which can respond within a few clock cycles (two on the Pentium ... Application Speci c Integrated Circuit— a chip that may or may not contain an instruction-set processor. These processors are designed to execute a speci c program. The general architecture ofthe...
  • 100
  • 404
  • 0

Xem thêm