1
///////////////////////////////////////////////////////////////////////////////
3
// (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost
4
// Software License, Version 1.0. (See accompanying file
5
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
// See http://www.boost.org/libs/container for documentation.
9
///////////////////////////////////////////////////////////////////////////////
11
#ifndef BOOST_CONTAINER_ALLOCATION_TYPE_HPP
12
#define BOOST_CONTAINER_ALLOCATION_TYPE_HPP
18
#include "config_begin.hpp"
19
#include <boost/container/detail/workaround.hpp>
25
enum allocation_type_v
27
// constants for allocation commands
28
allocate_new_v = 0x01,
31
// expand_both = expand_fwd | expand_bwd,
32
// expand_or_new = allocate_new | expand_both,
33
shrink_in_place_v = 0x08,
34
nothrow_allocation_v = 0x10,
36
try_shrink_in_place_v = 0x40
39
typedef int allocation_type;
41
static const allocation_type allocate_new = (allocation_type)allocate_new_v;
42
static const allocation_type expand_fwd = (allocation_type)expand_fwd_v;
43
static const allocation_type expand_bwd = (allocation_type)expand_bwd_v;
44
static const allocation_type shrink_in_place = (allocation_type)shrink_in_place_v;
45
static const allocation_type try_shrink_in_place= (allocation_type)try_shrink_in_place_v;
46
static const allocation_type nothrow_allocation = (allocation_type)nothrow_allocation_v;
47
static const allocation_type zero_memory = (allocation_type)zero_memory_v;
49
} //namespace container {
52
#include <boost/container/detail/config_end.hpp>
54
#endif //BOOST_CONTAINER_ALLOCATION_TYPE_HPP