|
597 | 597 | _NODISCARD_MSG("The 'unique' algorithm returns the iterator past the last element that should be kept. " \
|
598 | 598 | "You need to call container.erase(result, container.end()) afterwards.")
|
599 | 599 |
|
600 |
| -#define _NODISCARD_EMPTY_MEMBER \ |
601 |
| - _NODISCARD_MSG( \ |
602 |
| - "This member function returns a bool indicating whether the container is empty and has no other effects. " \ |
603 |
| - "It is not useful to call this member function and discard the return value. " \ |
| 600 | +#define _NODISCARD_EMPTY_MEMBER \ |
| 601 | + _NODISCARD_MSG( \ |
| 602 | + "This member function returns a bool indicating whether the collection is empty and has no other effects. " \ |
| 603 | + "It is not useful to call this member function and discard the return value. " \ |
604 | 604 | "Use the 'clear()' member function if you want to erase all elements.")
|
605 | 605 |
|
606 |
| -#define _NODISCARD_EMPTY_ARRAY_MEMBER \ |
607 |
| - _NODISCARD_MSG( \ |
608 |
| - "This member function returns a bool indicating whether the container is empty and has no other effects. " \ |
609 |
| - "It is not useful to call this member function and discard the return value. " \ |
| 606 | +#define _NODISCARD_EMPTY_ARRAY_MEMBER \ |
| 607 | + _NODISCARD_MSG( \ |
| 608 | + "This member function returns a bool indicating whether the array is empty and has no other effects. " \ |
| 609 | + "It is not useful to call this member function and discard the return value. " \ |
610 | 610 | "There's no way to clear an array as its size is fixed.")
|
611 | 611 |
|
612 |
| -#define _NODISCARD_EMPTY_STACKTRACE_MEMBER \ |
613 |
| - _NODISCARD_MSG( \ |
614 |
| - "This member function returns a bool indicating whether the container is empty and has no other effects. " \ |
615 |
| - "It is not useful to call this member function and discard the return value. " \ |
616 |
| - "'std::stacktrace' can be cleared by assigning an empty value to it.") |
| 612 | +#define _NODISCARD_EMPTY_MEMBER_NO_CLEAR \ |
| 613 | + _NODISCARD_MSG( \ |
| 614 | + "This member function returns a bool indicating whether the collection is empty and has no other effects. " \ |
| 615 | + "It is not useful to call this member function and discard the return value. " \ |
| 616 | + "This collection can be cleared by assigning an empty value to it.") |
617 | 617 |
|
618 |
| -#define _NODISCARD_EMPTY_NON_MEMBER \ |
619 |
| - _NODISCARD_MSG( \ |
620 |
| - "This function returns a bool indicating whether the container or container-like object is empty and " \ |
621 |
| - "has no other effects. It is not useful to call this function and discard the return value.") |
622 |
| - |
623 |
| -#define _NODISCARD_EMPTY_ADAPTOR_MEMBER \ |
624 |
| - _NODISCARD_MSG( \ |
625 |
| - "This member function returns a bool indicating whether the container is empty and has no other effects. " \ |
626 |
| - "It is not useful to call this member function and discard the return value. " \ |
627 |
| - "Container adaptors don't provide 'clear()' member functions, but you can assign an empty object to them.") |
| 618 | +#define _NODISCARD_EMPTY_NON_MEMBER \ |
| 619 | + _NODISCARD_MSG("This function returns a bool indicating whether the collection is empty and " \ |
| 620 | + "has no other effects. It is not useful to call this function and discard the return value.") |
628 | 621 |
|
629 | 622 | #define _NODISCARD_BARRIER_TOKEN \
|
630 | 623 | _NODISCARD_MSG("The token from 'arrive()' should not be discarded; it should be passed to 'wait()'.")
|
|
0 commit comments