Skip to content

Commit

Permalink
C++ adjustments for list
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Nyarko authored and Emmanuel Nyarko committed May 26, 2024
1 parent 9c358aa commit c3f40ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/stdcpp/list.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit c3f40ac

Please sign in to comment.