Next: , Previous: , Up: Meta-error handling: static_assert   [Contents]


7.1.3 Topic introduction

Very brief introduction to the topic.

static_assert is a compile-time evaluated function that asserts the truth of a supplied predicate, issuing an optional user-supplied error message if the predicate is false.