Today I learned that swap is not allowed to throw an exception in C++.
I also know that the following cannot throw exceptions either:
- Destructors
- Reading/writing primitive types
Are there any others?
Or perhaps, is there some sort of list that mentions everything that may not throw?
(Something more succinct than the standard itself, obviously.)