/
githubmirror
/
CPlusPlusThings
Обзор
Документация
Войти
/
githubmirror
/
CPlusPlusThings
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
learn_class/modern_cpp_30/literalAssert/assert.cpp
14 строк
282 B
zhangxing
support bazel complie this project and format code.
30 мар 2024, 17:00
30 мар 2024, 17:00
3c8a3f2
Код
Авторство
О чём код?
// // Created by light on 19-12-25. // #include <cassert> #include <iostream> int main() { const int alignment = 5; assert((alignment & (alignment - 1)) == 0); static_assert((alignment & (alignment - 1)) == 0, "Alignment must be power of two"); return 0; }