made clear constexpr

This commit is contained in:
cyborg1811m 2024-03-21 00:15:14 +01:00
parent 8dcbf36b87
commit 7fa0ae1257
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ namespace cc {
[[nodiscard]] constexpr size_type size() const noexcept { return _size; }
[[nodiscard]] constexpr size_type max_size() const noexcept { return SIZE_MAX; }
void clear() noexcept;
constexpr void clear() noexcept;
constexpr iterator insert(const_iterator pos, value_type& value) noexcept;
constexpr iterator insert(const_list::const_iterator pos, std::initializer_list<std::reference_wrapper<value_type>> values) noexcept;
@ -305,7 +305,7 @@ namespace cc {
}
template<typename Node>
void const_list<Node>::clear() noexcept
constexpr void const_list<Node>::clear() noexcept
{
for (auto node = _tail._next; _tail._next != std::addressof(_tail); ) {
auto next = node->_next;