cpplinq icon indicating copy to clipboard operation
cpplinq copied to clipboard

What does CPPLINQ_NOEXCEPT mean?

Open danielruc91 opened this issue 9 years ago • 1 comments

May I ask a question? In the code, it's defined that:

define CPPLINQ_NOEXCEPT throw()

But NOEXCEPT seems to say it won't throw() an exception... So what is exactly this macro doing?

danielruc91 avatar Jan 31 '16 23:01 danielruc91

http://en.cppreference.com/w/cpp/language/except_spec

Potential exceptions Each function f, pointer to function fp, and pointer to member function mfp has a set of potential exceptions, which consists of types that might be thrown and possibly the "any" placeholder for the possibility of an exception of arbitrary type. This set is defined as follows:

  1. If the declaration of f, fp, or mfp uses throw()(deprecated) or noexcept, the set is empty.

WojciechMigda avatar Feb 01 '16 06:02 WojciechMigda