@@ -180,32 +180,32 @@ class vector final
180180 // / creates two new elements via move construction. The first one has a valid source but the second
181181 // / gets an already moved parameter.
182182 template <typename ... Targs>
183- bool resize (const uint64_t count, const Targs&... args) noexcept ;
183+ [[nodiscard]] bool resize (const uint64_t count, const Targs&... args) noexcept ;
184184
185185 // / @brief forwards all arguments to the constructor of the contained element
186186 // / and performs a placement new at the provided position
187187 // / @param[in] position the position where the element should be created
188188 // / @param[in] args arguments which are used by the constructor of the newly created argument
189189 // / @return true if successful, false if position is greater than size or the vector is already full
190190 template <typename ... Targs>
191- bool emplace (const uint64_t position, Targs&&... args) noexcept ;
191+ [[nodiscard]] bool emplace (const uint64_t position, Targs&&... args) noexcept ;
192192
193193 // / @brief forwards all arguments to the constructor of the contained element
194194 // / and performs a placement new at the end
195195 // / @param[in] args arguments which are used by the constructor of the newly created argument
196196 // / @return true if successful, false if the vector is already full
197197 template <typename ... Targs>
198- bool emplace_back (Targs&&... args) noexcept ;
198+ [[nodiscard]] bool emplace_back (Targs&&... args) noexcept ;
199199
200200 // / @brief appends the given element at the end of the vector
201201 // / @param[in] value to append to the vector
202202 // / @return true if successful, false if vector already full
203- bool push_back (const T& value) noexcept ;
203+ [[nodiscard]] bool push_back (const T& value) noexcept ;
204204
205205 // / @brief appends the given element at the end of the vector
206206 // / @param[in] value to append to the vector
207207 // / @return true if successful, false if vector already full
208- bool push_back (T&& value) noexcept ;
208+ [[nodiscard]] bool push_back (T&& value) noexcept ;
209209
210210 // / @brief removes the last element of the vector; calling pop_back on an empty container does nothing
211211 // / @return true if the last element was removed. If the vector is empty it returns false.
0 commit comments