how to do assert in c++ code example
Example: c++ assert
assert(std::is_same_v); // error: assert does not take two arguments
assert((std::is_same_v)); // OK: one argument
static_assert(std::is_same_v); // OK: not a macro
std::complex c;
assert(c == std::complex{0, 0}); // error
assert((c == std::complex{0, 0})); // OK