-
-
Save Hackerpilot/26c2d0e7b1aa0605b344 to your computer and use it in GitHub Desktop.
std.experimental.allocator test b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module b; | |
import std.experimental.allocator; | |
import std.experimental.allocator.building_blocks.allocator_list; | |
import std.experimental.allocator.building_blocks.region; | |
import std.experimental.allocator.building_blocks.null_allocator; | |
import std.experimental.allocator.mallocator; | |
alias AllocatorType = CAllocatorImpl!(AllocatorList!(n => Region!Mallocator(1024 * 128))); | |
unittest | |
{ | |
auto a = new AllocatorType; | |
a.allocate(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment