在C++中,我想知道为什么bool类型是8位长(在我的系统上),只有一位足以保存布尔值?
我曾经认为这是出于性能原因,但是在32位或64位机器上,寄存器为32或64位宽,性能优势是什么?
或者这只是这些"历史"原因之一?
喜!我有一些代码,我想通过doxygen记录.因此,我对UML图表感兴趣,但是现在我想使用这样的子组:
///@{
/// @name The lame constants
/// @details There are two seperate vectors for the first lame constant (in water and ground) but only one for the shear module (also known as second lame constant), since shear module for water is zero! Every element of the vector belongs to one grid point, linear interpolation within vertical direction will be applied. By using this the assumption of an isotrope media is made!
std::vector<double> lamw; ///< first lame constant for the …Run Code Online (Sandbox Code Playgroud)