Skip to content

Instantly share code, notes, and snippets.

@Hackerpilot
Created August 26, 2015 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hackerpilot/26c2d0e7b1aa0605b344 to your computer and use it in GitHub Desktop.
Save Hackerpilot/26c2d0e7b1aa0605b344 to your computer and use it in GitHub Desktop.
std.experimental.allocator test b
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