Zusammenfassung
Das Arbeiten mit Bitfeldern zur Laufzeit der Programme ist relativ aufwendig, langsam und ineffizient. In diesem Kapitel wird gezeigt, wie mit Templates Bitfelder realisiert werden können und wie auf die einzelnen Elemente des Bitfeldes sehr effizient zugegriffen werden kann.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Alexandrescu verweist in seiner Präsentation darauf, dass die Idee Bitfelder mit Templates zu realisieren aus einem Web-Blog von Tudor Bosman stammt. Diesen Blog habe ich allerdings im Web nicht gefunden.
Literatur
Alexandrescu, Andrej. 2013. Writing quick code in C++, quickly. http://channel9.msdn.com/Events/GoingNative/2013/Writing-Quick-Code-in-Cpp-Quickly. Zugegriffen am 05.11.2014.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2016 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Lemke, J. (2016). Speicheroptimierung mit Bitfeldern. In: C++-Metaprogrammierung . Xpert.press. Springer Vieweg, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-48550-7_9
Download citation
DOI: https://doi.org/10.1007/978-3-662-48550-7_9
Published:
Publisher Name: Springer Vieweg, Berlin, Heidelberg
Print ISBN: 978-3-662-48549-1
Online ISBN: 978-3-662-48550-7
eBook Packages: Computer Science and Engineering (German Language)