From c6cf7bcb37437c8b35f34bad707445bde16544dd Mon Sep 17 00:00:00 2001 From: cyborg1811m Date: Mon, 22 Jan 2024 14:32:34 +0100 Subject: [PATCH] added implementation for non-member definitions for const_list --- include/const_list.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/const_list.h b/include/const_list.h index d186df0..d4824ad 100644 --- a/include/const_list.h +++ b/include/const_list.h @@ -219,33 +219,33 @@ namespace cc { constexpr bool operator==(const const_list& lhs, const const_list& rhs) { - + return lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin(), rhs.end()); } template constexpr auto operator<=>(const const_list& lhs, const const_list& rhs) { - + return std::lexicographical_compare_three_way(lhs.begin(), lhs.end(), rhs.begin(), rhs.end()); } template constexpr void swap(const const_list& lhs, const const_list& rhs) { - + lhs.swap(rhs); } template - constexpr const_list::size_type erase(const_list& c, const N& value) + constexpr const_list::size_type erase(const_list& c, const N& value) { - + c.remove(value); } template - constexpr const_list::size_type erase(const_list& c, Pred pred) + constexpr const_list::size_type erase(const_list& c, Pred pred) { - + c.remove_if(pred); } template