Pensar en C++ (Volumen 1) - Grupo ARCO
Pensar en C++ (Volumen 1) - Grupo ARCO
Pensar en C++ (Volumen 1) - Grupo ARCO
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
✐<br />
✐<br />
✐<br />
“Volum<strong>en</strong>1” — 2012/1/12 — 13:52 — page X — #10<br />
✐<br />
Índice g<strong>en</strong>eral<br />
8.4.3.1. mutable: constancia binaria vs. lógica . . . . . . . . . . 244<br />
8.4.3.2. ROMability . . . . . . . . . . . . . . . . . . . . . . . . . 245<br />
8.5. Volatile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245<br />
8.6. Resum<strong>en</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247<br />
8.7. Ejercicios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247<br />
9. Funciones inline 251<br />
9.1. Los peligros del preprocesador . . . . . . . . . . . . . . . . . . . . . . . 251<br />
9.1.1. Macros y acceso . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254<br />
9.2. Funciones inline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254<br />
9.2.1. inline d<strong>en</strong>tro de clases . . . . . . . . . . . . . . . . . . . . . . . . 255<br />
9.2.2. Funciones de acceso . . . . . . . . . . . . . . . . . . . . . . . . . 256<br />
9.2.2.1. Accesores y mutadores . . . . . . . . . . . . . . . . . . 257<br />
9.3. Stash y Stack con inlines . . . . . . . . . . . . . . . . . . . . . . . . . . . 261<br />
9.4. Funciones inline y el compilador . . . . . . . . . . . . . . . . . . . . . . 264<br />
9.4.1. Limitaciones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265<br />
9.4.2. Refer<strong>en</strong>cias adelantadas . . . . . . . . . . . . . . . . . . . . . . . 265<br />
9.4.3. Actividades ocultas <strong>en</strong> contructores y destructores . . . . . . . . 266<br />
9.5. Reducir el desord<strong>en</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267<br />
9.6. Más características del preprocesador . . . . . . . . . . . . . . . . . . . 268<br />
9.6.1. Encolado de símbolos . . . . . . . . . . . . . . . . . . . . . . . . 269<br />
9.7. Comprobación de errores mejorada . . . . . . . . . . . . . . . . . . . . . 269<br />
9.8. Resum<strong>en</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272<br />
9.9. Ejercicios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272<br />
10. Control de nombres 275<br />
10.1. Los elem<strong>en</strong>tos estáticos de C . . . . . . . . . . . . . . . . . . . . . . . . . 275<br />
10.1.1. Variables estáticas d<strong>en</strong>tro de funciones . . . . . . . . . . . . . . 275<br />
10.1.1.1. Objetos estáticos d<strong>en</strong>tro de funciones . . . . . . . . . . 277<br />
10.1.1.2. Destructores de objetos estáticos . . . . . . . . . . . . . 277<br />
10.1.2. Control del <strong>en</strong>lazado . . . . . . . . . . . . . . . . . . . . . . . . . 279<br />
10.1.2.1. Confusión . . . . . . . . . . . . . . . . . . . . . . . . . . 280<br />
10.1.3. Otros especificadores para almac<strong>en</strong>ami<strong>en</strong>to de clases . . . . . . 281<br />
10.2. Espacios de nombres . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281<br />
10.2.1. Crear un espacio de nombres . . . . . . . . . . . . . . . . . . . . 281<br />
10.2.1.1. Espacios de nombres sin nombre . . . . . . . . . . . . 282<br />
10.2.1.2. Amigas . . . . . . . . . . . . . . . . . . . . . . . . . . . 283<br />
10.2.2. Cómo usar un espacio de nombres . . . . . . . . . . . . . . . . . 283<br />
10.2.2.1. Resolución del ámbito . . . . . . . . . . . . . . . . . . . 283<br />
X<br />
✐<br />
✐<br />
✐<br />
✐