made clear constexpr
This commit is contained in:
parent
8dcbf36b87
commit
7fa0ae1257
|
|
@ -129,7 +129,7 @@ namespace cc {
|
||||||
[[nodiscard]] constexpr size_type size() const noexcept { return _size; }
|
[[nodiscard]] constexpr size_type size() const noexcept { return _size; }
|
||||||
[[nodiscard]] constexpr size_type max_size() const noexcept { return SIZE_MAX; }
|
[[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_iterator pos, value_type& value) noexcept;
|
||||||
constexpr iterator insert(const_list::const_iterator pos, std::initializer_list<std::reference_wrapper<value_type>> values) 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>
|
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); ) {
|
for (auto node = _tail._next; _tail._next != std::addressof(_tail); ) {
|
||||||
auto next = node->_next;
|
auto next = node->_next;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue