“cpp/numeric/countl zero”的版本间的差异

来自cppreference.com
< cpp‎ | numeric
第6行: 第6行:
 
}}
 
}}
  
 返回 {{c|x}} 的值中从最高位(“左”)起连续的为 0 的位的数量。
+
 返回 {{c|x}} 的值中从最高位(“左”)起连续的为 0的位的数量。
  
{{cpp/enable_if| {{tt|T}} 为无符号整数类型(即 {{c|unsigned char}}、{{c|unsigned short}}、{{c|unsigned int}}、{{c|unsigned long}}、{{c|unsigned long long}} 或扩展无符号整数类型)}}。
+
{{cpp/enable_if| {{tt|T}} 为无符号整数类型(即 {{c|unsigned char}}、{{c|unsigned short}}、{{c|unsigned int}}、{{c|unsigned long}}、{{c|unsigned long long}} 或扩展无符号整数类型)}}。
  
 
===参数===
 
===参数===
第16行: 第16行:
  
 
===返回值===
 
===返回值===
{{c|x}} 的值中从最高位起连续的为 0 的位的数量。
+
{{c|x}} 的值中从最高位起连续的为 0的位的数量。
  
 
===注解===
 
===注解===
 
{{feature test macro|__cpp_lib_bitops|std=C++20|value=201907L|[[cpp/numeric#位操纵 (C++20 起)|位运算]]}}
 
{{feature test macro|__cpp_lib_bitops|std=C++20|value=201907L|[[cpp/numeric#位操纵 (C++20 起)|位运算]]}}
  
=== 示例 ===
+
===示例===
 
{{example
 
{{example
 
|code=
 
|code=
第42行: 第42行:
 
}}
 
}}
  
=== 参阅 ===
+
===参阅===
 
{{dsc begin}}
 
{{dsc begin}}
 
{{dsc inc|cpp/numeric/dsc countl_one}}
 
{{dsc inc|cpp/numeric/dsc countl_one}}

2024年11月3日 (日) 22:06的版本