HomePhabricator

First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty…

Description

First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only

Details

Committed
marshallNov 14 2017, 9:51 PM
Parents
rL318268: Still more missing tests - this time for the unordered containers
Branches
Unknown
Tags
Unknown