Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Addition of C++ std::string, std::vector to D #1316

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mak/COPY
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ COPY=\
$(IMPDIR)\core\stdc\wchar_.d \
$(IMPDIR)\core\stdc\wctype.d \
\
$(IMPDIR)\core\stdcpp\allocator.d \
$(IMPDIR)\core\stdcpp\string.d \
$(IMPDIR)\core\stdcpp\vector.d \
\
$(IMPDIR)\core\sys\freebsd\dlfcn.d \
$(IMPDIR)\core\sys\freebsd\execinfo.d \
\
Expand Down
4 changes: 4 additions & 0 deletions mak/DOCS
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ DOCS=\
$(DOCDIR)\core_stdc_wchar_.html \
$(DOCDIR)\core_stdc_wctype.html \
\
$(DOCDIR)\core_stdcpp_allocator.html \
$(DOCDIR)\core_stdcpp_string.html \
$(DOCDIR)\core_stdcpp_vector.html \
\
$(DOCDIR)\core_sync_barrier.html \
$(DOCDIR)\core_sync_condition.html \
$(DOCDIR)\core_sync_config.html \
Expand Down
4 changes: 4 additions & 0 deletions mak/MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ MANIFEST=\
src\core\stdc\wchar_.d \
src\core\stdc\wctype.d \
\
src\core\stdcpp\allocator.d \
src\core\stdcpp\string.d \
src\core\stdcpp\vector.d \
\
src\core\sync\barrier.d \
src\core\sync\condition.d \
src\core\sync\config.d \
Expand Down
4 changes: 4 additions & 0 deletions mak/SRCS
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ SRCS=\
src\core\stdc\time.d \
src\core\stdc\wchar_.d \
\
src\core\stdcpp\allocator.d \
src\core\stdcpp\string.d \
src\core\stdcpp\vector.d \
\
src\core\sync\barrier.d \
src\core\sync\condition.d \
src\core\sync\config.d \
Expand Down
3 changes: 3 additions & 0 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ $(DOCDIR)/core_%.html : src/core/%.d
$(DOCDIR)/core_stdc_%.html : src/core/stdc/%.d
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<

$(DOCDIR)/core_stdcpp_%.html : src/core/stdcpp/%.d
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<

$(DOCDIR)/core_sync_%.html : src/core/sync/%.d
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<

Expand Down
20 changes: 20 additions & 0 deletions src/core/stdcpp/allocator.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* D header file for interaction with C++ std::allocator.
*
* Copyright: Copyright Guillaume Chatelet 2014 - 2015.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Authors: Guillaume Chatelet
* Source: $(DRUNTIMESRC core/stdcpp/allocator.d)
*/

module core.stdcpp.allocator;

extern(C++, std):

/**
* Allocators are classes that define memory models to be used by some parts of
* the C++ Standard Library, and most specifically, by STL containers.
*/
struct allocator(T) { }
Loading