SO/IEC 14882:1998): 

    

  * 9.6 Bit-fields [class.bit] 

###  [ [ edit
](/mwiki/index.php?title=cpp/language/bit_field&action=edit&section=5 "Edit
section: See also") ]  See also

[ bitset  ](/w/cpp/utility/bitset "cpp/utility/bitset") |  implements constant length bit array   
(class template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_bitset&action=edit)  
---|---  
[ vector  <bool> ](/w/cpp/container/vector_bool "cpp/container/vector bool") |  space-efficient dynamic bitset   
(class template specialization)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/container/dsc_vector_bool&action=edit)  
[ **Bit manipulation** ](/w/cpp/numeric#Bit_manipulation_.28since_C.2B.2B20.29 "cpp/numeric") (C++20)  |  utilities to access, manipulate, and process individual bits and bit sequences   
[ C documentation ](/w/c/language/bit_field "c/language/bit field") for  Bit-
fields  
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/language/bit_field&oldid=160024
](https://en.cppreference.com/mwiki/index.php?title=cpp/language/bit_field&oldid=160024)
"

#####  Navigation

  * [ Support us ](http://www.cppreference.com/support)
  * [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
  * [ FAQ ](/w/Cppreference:FAQ)
  * [ Offline version ](/w/Cppreference:Archives)

#####  Toolbox

  * [ What links here ](/w/Special:WhatLinksHere/cpp/language/bit_field "A list of all wiki pages that link here \[j\]")
  * [ Related changes ](/w/Special:RecentChangesLinked/cpp/language/bit_field "Recent changes in pages linked from this page \[k\]")
  * [ Upload file ](http://upload.cppreference.com/w/Special:Upload "Upload files \[u\]")
  * [ Special pages ](/w/Special:SpecialPages "A list of all special pages \[q\]")
  * [ Printable version ](/mwiki/index.php?title=cpp/language/bit_field&printable=yes "Printable version of this page \[p\]")
  * [ Permanent link ](/mwiki/index.php?title=cpp/language/bit_field&oldid=160024 "Permanent link to this revision of the page")
  * [ Page information ](/mwiki/index.php?title=cpp/language/bit_field&action=info)

  * In other languages 

  * [ Español ](http://es.cppreference.com/w/cpp/language/bit_field "cpp/language/bit field")
  * [ 日本語 ](http://ja.cppreference.com/w/cpp/language/bit_field "cpp/language/bit field")
  * [ Русский ](http://ru.cppreference.com/w/cpp/language/bit_field "cpp/language/bit field")
  * [ 中文 ](http://zh.cppreference.com/w/cpp/language/bit_field "cpp/language/bit field")

  * This page was last modified on 2 October 2023, at 13:45. 
  * This page has been accessed 770,002 times. 

  * [ Privacy policy ](/w/Cppreference:Privacy_policy "Cppreference:Privacy policy")
  * [ About cppreference.com ](/w/Cppreference:About "Cppreference:About")
  * [ Disclaimers ](/w/Cppreference:General_disclaimer "Cppreference:General disclaimer")

  * [ ![Powered by MediaWiki](/mwiki/skins/common/images/poweredby_mediawiki_88x31.png) ](//www.mediawiki.org/) [ ![Powered by GeSHi](//upload.cppreference.com/mwiki/images/2/2b/powered_by_geshi_88x31.png) ](http://qbnz.com/highlighter/) [ ![Hosted by Tiger Technologies](//upload.cppreference.com/mwiki/images/9/94/powered_by_tigertech_88x31.png) ](http://www.tigertech.net/referral/cppreference.com)