• Home
  • Raw
  • Download

Lines Matching refs:static_assert

172       static_assert(sizeof(int) <= sizeof(T), "not big enough");
243 static_assert(is_same<int, decltype(0)>::value == true, "");
244 static_assert(is_same<int, decltype(c)>::value == false, "");
245 static_assert(is_same<int, decltype(v)>::value == false, "");
250 static_assert(is_same<int, decltype(ac)>::value == true, "");
251 static_assert(is_same<int, decltype(av)>::value == true, "");
252 static_assert(is_same<int, decltype(sumi)>::value == true, "");
253 static_assert(is_same<int, decltype(sumf)>::value == false, "");
254 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
266 static_assert(noexcept(f()) == false, "");
267 static_assert(noexcept(g()) == true, "");
288 static_assert(strlen_c("") == 0UL, "");
289 static_assert(strlen_c("1") == 1UL, "");
290 static_assert(strlen_c("example") == 7UL, "");
291 static_assert(strlen_c("another\0example") == 7UL, "");
313 static_assert(decltype(f(i))::value == 1, "");
314 static_assert(decltype(f(c))::value == 2, "");
315 static_assert(decltype(f(0))::value == 3, "");
329 static_assert(test::zero == 0, "");
330 static_assert(test::one == 1, "");
396 static_assert(sum<>::value == 0, "");
397 static_assert(sum<1>::value == 1, "");
398 static_assert(sum<23>::value == 23, "");
399 static_assert(sum<1, 2>::value == 3, "");
400 static_assert(sum<5, 5, 11>::value == 21, "");
401 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
477 static_assert(ivii == 42, "wrong value");
494 static_assert(strlen_c("") == 0UL, "");
495 static_assert(strlen_c("x") == 1UL, "");
496 static_assert(strlen_c("test") == 4UL, "");
497 static_assert(strlen_c("another\0test") == 7UL, "");
519 static_assert(ten_million == 100000000, "");
545 static_assert(is_same<int, decltype(f(x))>::value, "");
546 static_assert(is_same<int&, decltype(g(x))>::value, "");