This function allows the efficient use of an array to implement bitfields 這個函數(shù)可以實現(xiàn)有效處理位域的功能。
Do use a singular name for an enumeration , unless its values are bit fields 對枚舉使用單數(shù)名稱,除非枚舉值是位域。
Indicates that an enumeration can be treated as a bit field ; that is , a set of flags 指示可以將枚舉作為位域(即一組標(biāo)志)處理。
Do use a plural name for enumerations with bit fields as values , also called flags enumerations 對使用位域值的枚舉(也稱為標(biāo)志枚舉)使用復(fù)數(shù)名稱。
Water body is shallow and sediments are coarse in lst and hst , but in tst , being deep and fine 低水位體系域和高水位體系域水體較淺,沉積較粗,而湖進(jìn)水位域則水體較深,沉積較細(xì)。
A memory location is either an object of scalar type , or a maximal sequence of adjacent bit - fields all having non - zero width 一個內(nèi)存位置要么是一個標(biāo)量、要么是一組緊鄰的具有非零長度的位域。
To an enumeration to indicate that the enumeration should be treated as a bit field ; that is , as a set of flags see example 2 應(yīng)用于枚舉,指示應(yīng)將該枚舉視為位域,即一組標(biāo)志(請參見示例2 ) 。
Unless it is a bit - field ( 9 . 6 ) , a most derived object shall have a non - zero size and shall occupy one or more bytes of storage 除非作為位域( 9 . 6 ) ,最終派生對象總是具有非零大小并總占用一個以上字節(jié)的存儲。
Custom attribute on the definition of an enumeration indicates that the enumeration should be treated as a set of bit fields flags , and the absence of this attribute indicates the type should be viewed as a group of enumerated constants 自定義屬性指示該枚舉應(yīng)該作為一組位域(標(biāo)志)對待,沒有該屬性指示該類型應(yīng)被視為一組枚舉常數(shù)。