diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-10-02 14:35:22 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-10-02 14:35:22 +0200 |
| commit | 88c9a78261fe1d54e297c7ac8bd4c052c19985fc (patch) | |
| tree | 43c964651f0c01cce6c5eb253140614b81ecdc9c | |
| parent | 0dcc94e36a83dd9828798cc416c7bf07cb01562a (diff) | |
| download | kernel-88c9a78261fe1d54e297c7ac8bd4c052c19985fc.tar.xz kernel-88c9a78261fe1d54e297c7ac8bd4c052c19985fc.zip | |
kstd: ring_buffer: add missing nodiscard
| -rw-r--r-- | libs/kstd/kstd/ring_buffer.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/kstd/kstd/ring_buffer.hpp b/libs/kstd/kstd/ring_buffer.hpp index 591ff445..10ee334d 100644 --- a/libs/kstd/kstd/ring_buffer.hpp +++ b/libs/kstd/kstd/ring_buffer.hpp @@ -523,7 +523,7 @@ namespace kstd //! @return @p true iff. the buffer had space for the value, @p false otherwise. template<typename PushedType> requires(std::same_as<ValueType, std::remove_cvref_t<PushedType>>) - constexpr auto try_push_back(PushedType && value) -> bool + [[nodiscard]] constexpr auto try_push_back(PushedType && value) -> bool { if (m_size >= capacity()) { |
