Allocator Builder
Policy Based C++ Template Allocator Library
Main Page
Related Pages
Modules
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Enumerator
Groups
Pages
global_allocator.hpp
1
//
3
// Copyright 2014 Felix Petriconi
4
//
5
// License: http://boost.org/LICENSE_1_0.txt, Boost License 1.0
6
//
7
// Authors: http://petriconi.net, Felix Petriconi
8
//
10
#pragma once
11
12
namespace
alb {
13
struct
length_prefix
{
14
unsigned
length;
15
};
16
17
template
<
class
Allocator>
18
class
global_allocator
19
{
20
public
:
21
using
value_type = Allocator;
22
23
static
Allocator &instance() {
24
static
Allocator in;
25
return
in;
26
}
27
};
28
}
alb::global_allocator
Definition:
global_allocator.hpp:18
alb::length_prefix
Definition:
global_allocator.hpp:13
alb
global_allocator.hpp
Generated on Sun Nov 15 2015 20:28:19 for Allocator Builder by
1.8.6