Skip to content

Commit

Permalink
vector(alloc) ctor test
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Nyarko authored and Emmanuel Nyarko committed Feb 22, 2024
1 parent 0f6f44e commit 193b0ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/stdcpp/vector.d
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,14 @@ extern(D):
return this.__end_cap_.first();
}

extern(C++) this(const ref allocator_type __a)
{
int n = 0;
this(0, n, __a);
}

extern(C++) this(size_t __n, const ref value_type __v, const ref allocator_type __a);

///vector(n) constructor
extern(C++) this(size_t __n);

Expand Down

0 comments on commit 193b0ce

Please sign in to comment.