📄 power_of_2.hpp
字号:
// Software License for MTL// // Copyright (c) 2007 The Trustees of Indiana University. All rights reserved.// Authors: Peter Gottschling and Andrew Lumsdaine// // This file is part of the Matrix Template Library// // See also license.mtl.txt in the distribution.#ifndef META_MATH_POWER_OF_2_INCLUDE#define META_MATH_POWER_OF_2_INCLUDEnamespace meta_math {// Computes the n-th power of 2// So simple, everybody could do it, it is only there for the sake of completenesstemplate <unsigned long N>struct power_of_2{ static const unsigned long value= X << N;};} // namespace meta_math#endif // META_MATH_POWER_OF_2_INCLUDE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -