Attributes provide a universal syntax over __attribute__(...), __declspec, etc.
// `noreturn` attribute indicates `f` doesn't return.
[[ noreturn ]] void f() {
throw "error";
}
C++11
Attributes provide a universal syntax over __attribute__(...), __declspec, etc.
// `noreturn` attribute indicates `f` doesn't return.
[[ noreturn ]] void f() {
throw "error";
}