*: add lost of "noexcept" specifications

This commit is contained in:
Max Kellermann
2017-06-03 21:33:44 +02:00
parent 62b03cfddf
commit a057b4f6d8
65 changed files with 246 additions and 241 deletions

View File

@@ -162,14 +162,14 @@ struct Queue {
}
gcc_pure
unsigned OrderToPosition(unsigned _order) const {
unsigned OrderToPosition(unsigned _order) const noexcept {
assert(_order < length);
return order[_order];
}
gcc_pure
unsigned PositionToOrder(unsigned position) const {
unsigned PositionToOrder(unsigned position) const noexcept {
assert(position < length);
for (unsigned i = 0;; ++i) {
@@ -181,7 +181,7 @@ struct Queue {
}
gcc_pure
uint8_t GetPriorityAtPosition(unsigned position) const {
uint8_t GetPriorityAtPosition(unsigned position) const noexcept {
assert(position < length);
return items[position].priority;