Commit graph

31 commits

Author SHA1 Message Date
Paul Backus
e05ee968ac Region: don't use NullAllocator as a sentinel
Region will now always assume that its ParentAllocator is a real
allocator, and attempt to use its 'allocate' and 'deallocate' methods
accordingly.

The behavior previously provided by Region!(NullAllocator, ...) remains
available via BorrowedRegion!(...).

See issue 23090 for detailed rationale.
2022-09-19 16:31:20 -04:00
Nathan Sashihara
a3dfcc1025 Implement allocateZeroed for building-block allocators
Followup to https://github.com/dlang/phobos/pull/6411
2018-09-08 10:56:34 -04:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Sebastian Wilzbach
6f766dce5d Remove redundant 'static' storage classes 2018-04-05 13:11:48 +02:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
233e90bdc1 Add PHOBOSSRC urls to std.experimental 2018-01-08 02:52:50 +01:00
Eduard Staniloiu
863421e114 Make alignedReallocate nothrow nogc 2017-12-06 18:38:11 +01:00
Eduard Staniloiu
2a02f6feb9 Make reallocate nothrow nogc 2017-11-28 14:50:26 +00:00
Eduard Staniloiu
df72d45c7c Make allocators expand safe 2017-11-22 19:51:12 +02:00
Eduard Staniloiu
a498d87222 Make empty @safe 2017-11-07 18:00:52 +00:00
Eduard Staniloiu
ee9fc06656 Mark deallocateAll as @nogc 2017-11-06 21:57:59 +00:00
Eduard Staniloiu
da335ad328 Mark deallocate as nothrow @nogc 2017-11-06 10:09:29 +00:00
Eduard Staniloiu
badaa758e7
Revert "Allocators owns should take const void[]" 2017-11-02 20:23:35 +02:00
Eduard Staniloiu
6f8b418e6c Allocators owns should take const void[] 2017-11-01 10:01:36 +00:00
Eduard Staniloiu
d37bc9dc6e Make resolveInternalPointer @safe 2017-10-28 22:31:36 +00:00
Eduard Staniloiu
59c25d8cc8 Fix segregator alignedReallocate and empty 2017-10-24 21:35:29 +00:00
Eduard Staniloiu
97ddc3d11d Improve unittests 2017-10-19 13:30:24 +00:00
Sebastian Wilzbach
818deb3615 Fix DDoc macros 2017-06-30 01:39:24 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Eduard Staniloiu
7c0ebad377 Make allocators' resolveInternalPointer take a const pointer as source 2017-04-03 20:35:01 +03:00
Eduard Staniloiu
85000db4be Make the resolveInternalPointer method abide the IAllocator API 2017-03-15 16:54:31 +02:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Jack Stouffer
c183c2e5c2 Fixed std.algorithm imports in std.experimental.allocator to not be package wide 2016-07-03 01:34:31 -04:00
Sönke Ludwig
f07dfe6df0 Add empty doc comments to all public Phobos modules to fix /library/.
The DDOX based documentation is configured to only show entities with doc comments and thus hides modules without one. This adds an empty comment to all public Phobos modules that have stayed undocumented so far.

They should probably get a proper documentation with description/license/copyright/.... This just fixes the documentation until then.
2016-06-06 10:53:11 +02:00
Steven Schveighoffer
bc63d2b949 Merge pull request #4372 from andralex/allocator-change-expand
Change semantics of expand: the null array cannot be expanded 'in place'
2016-05-27 17:45:44 -04:00
Andrei Alexandrescu
8ecabe23f2 Change semantics of expand: the null array cannot be expanded 'in place' 2016-05-27 16:36:01 -04:00
Andrei Alexandrescu
b94026470d Merge pull request #4307 from JackStouffer/allocator
Move Ternary from std.experimental.allocator.common to std.typecons
2016-05-24 10:29:23 -04:00
Jack Stouffer
b7165c04bc Move Ternary from std.experimental.allocator.common to std.typecons 2016-05-24 10:27:10 -04:00
Jack Stouffer
c643eaa291 Remove commented out code and redundant comments from std.experimental.allocator 2016-05-12 08:25:42 -04:00
Andrei Alexandrescu
499ecfedc5 Moved a bunch of building blocks into a new package building_blocks 2015-10-02 07:35:09 -04:00
Renamed from std/experimental/allocator/segregator.d (Browse further)