Const-correctness - Frederic P Miller - Grāmatas - Alphascript Publishing - 9786130233921 - 2009. gada 3. decembris
Ja vāks un nosaukums nesakrīt, pareizs ir nosaukums

Const-correctness

Cena
€ 118,99

Pasūtīts no attālās noliktavas

Paredzamā piegāde . gada 6. - 14. maijā
Pievienot savam iMusic vēlmju sarakstam

Publisher Marketing: High Quality Content by WIKIPEDIA articles! In computer science, const-correctness is the form of program correctness that deals with the proper declaration of objects as mutable or immutable. The term is mostly used in a C or C++ context, and takes its name from the const keyword in those languages. The idea of const-ness does not imply that the variable as it is stored in the computer's memory is unwriteable. Rather, const-ness is a compile-time construct that indicates what a programmer may do, not necessarily what they can do. In addition, a method can be declared as const. In this case, the 'this' pointer inside such a method is of const ThisClass const type rather than of This Class const type. This means that non-const methods for this object cannot be called from inside such a method, nor can member variables be modified, nor can non-const methods be called, if they are of class type. In C++, a member variable can be declared as mutable, indicating that this restriction does not apply to it. Mutable member variables can be used for caching and reference counting, where the logical meaning (state) of the object is unchanged, but the object is not physically constant since its bitwise representation may change.

Mediji Grāmatas     Book
Izlaists 2009. gada 3. decembris
ISBN13 9786130233921
Izdevēji Alphascript Publishing
Lapas 78
Izmēri 229 × 152 × 5 mm   ·   250 g   (Svars (aptuveni))

Vairāk no Frederic P Miller

Rādīt visu