An inheriting constructor (12.9) and an implicitly declared special member function (Clause 12) have an exception-specification.
If f is an
- inheriting constructor
- implicitly declared
- default constructor
- copy constructor
- move constructor
- destructor
- copy assignment operator
- move assignment operator
f allows all exceptions if any function it directly invokes allows all exceptions, and f has the exception-specification noexcept(true) if every function it directly invokes allows no exceptions.
------------
std::allocator{} is _noexcept_
------------
std::allocator{} is _noexcept_
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.