From d891f086b1058de8c13898ef6acafddbc993a1ea Mon Sep 17 00:00:00 2001 From: GitHub Date: Sun, 14 May 2023 11:10:15 +0000 Subject: [PATCH] Update dependencies --- split-a-circular-linked-list/test.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/split-a-circular-linked-list/test.cpp b/split-a-circular-linked-list/test.cpp index 7a22de8a..233f8e1c 100644 --- a/split-a-circular-linked-list/test.cpp +++ b/split-a-circular-linked-list/test.cpp @@ -17,28 +17,31 @@ using namespace leetcode_test::split_a_circular_linked_list; using namespace std; using std::vector; template -concept sizable = requires(T& t) { +concept sizable = requires(T& t) +{ { t.size() - } -> std::same_as; + } -> std::same_as; }; template -concept iterable = requires(T& t) { +concept iterable = requires(T& t) +{ ++t.begin(); { t.begin() != t.end() - } -> std::same_as; + } -> std::same_as; }; template -concept equalable = requires(T& t, Y& y, size_t i) { +concept equalable = requires(T& t, Y& y, size_t i) +{ { *t.begin() == *y.begin() - } -> std::same_as; + } -> std::same_as; }; template - requires sizable and sizable and equalable and iterable and iterable +requires sizable and sizable and equalable and iterable and iterable auto assertContentEquals(T& left, Y& right) {