cppfor2021W30
Link zur Live-Demo Container (emplace, operator< ...): https://godbolt.org/z/YrqYfcres
Link zur Live-Demo zu bind vs. lambdas: https://godbolt.org/z/vKqz3hrev
Beispiel von Seite TEMPLATE-30 … 32 https://godbolt.org/z/rn1xs74Gc
State-Machine Beispiele:
- https://godbolt.org/z/hsrYvb
- https://godbolt.org/z/rsne7M
- https://godbolt.org/z/GYT1hj
- https://godbolt.org/z/PnY9Ks
HINWEIS:
Die gwünschte Eingabe bestehend aus den Buchstaben "A", "B", ... usw. ist im Feld oben rechts VORAB zu tätigen. Das Programm liest und verarbeitet diese Eingabe dann, zeigt jeden Buchstaben zur Kontrolle nochmal an gefolgt von der Ausgabe, also wie das Programm darauf reagiert. (Einfach mal Ausprobieren, geht schneller als "studieren" … :-):
Links zu Online-kompilierbaren Beispielen aus dem Kapitel "C++FOR Exceptions":
https://godbolt.org/z/A6bg9U (copy-paste EX-15...18)
https://godbolt.org/z/S4op5a (copy-paste EX-21...24)
https://godbolt.org/z/ve-bBX (copy-paste EX-25)
https://godbolt.org/z/m7K92A (copy-paste EX-26)
https://godbolt.org/z/iYJ4yJ (copy-paste EX-27)
https://godbolt.org/z/WquFzw (copy-paste EX-30...33)
https://godbolt.org/z/5rz1jdWhr (Variante mit `std::out_of_range`)
https://godbolt.org/z/XHtBLn (copy-paste EX-42...44)
https://godbolt.org/z/mdVmeY (copy-paste EX-42..43+45)
https://godbolt.org/z/gejU3B (copy-paste EX-42..43+46)