From c3f40ac91e29b8f83e02b042b367f9f9adbf8fa5 Mon Sep 17 00:00:00 2001 From: Emmanuel Nyarko Date: Sun, 26 May 2024 16:14:47 +0000 Subject: [PATCH] C++ adjustments for list --- source/stdcpp/list.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/stdcpp/list.d b/source/stdcpp/list.d index c86267e..f9f69d7 100644 --- a/source/stdcpp/list.d +++ b/source/stdcpp/list.d @@ -216,9 +216,9 @@ extern(C++, class) struct list(Type, Allocator) this.resize(n, item); } - extern(D) void remove(const value_type item) + extern(D) size_type remove(const value_type item) { - this.remove(item); + return this.remove(item); } ref list opAssign(ref const list!Type other); @@ -261,7 +261,7 @@ extern(C++, class) struct list(Type, Allocator) void merge(U)(ref const list!Type other, U comp); - void remove(const ref value_type val); + size_type remove(const ref value_type val); void reverse() nothrow;