~ubuntu-branches/ubuntu/wily/davix/wily

« back to all changes in this revision

Viewing changes to deps/boost_intern/boost/container/detail/allocation_type.hpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2015-07-31 13:17:55 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150731131755-mizprbmn7ogv33te
Tags: 0.4.1-1
* Update to version 0.4.1
* Implement Multi-Arch support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
///////////////////////////////////////////////////////////////////////////////
2
 
//
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)
6
 
//
7
 
// See http://www.boost.org/libs/container for documentation.
8
 
//
9
 
///////////////////////////////////////////////////////////////////////////////
10
 
 
11
 
#ifndef BOOST_CONTAINER_ALLOCATION_TYPE_HPP
12
 
#define BOOST_CONTAINER_ALLOCATION_TYPE_HPP
13
 
 
14
 
#if defined(_MSC_VER)
15
 
#  pragma once
16
 
#endif
17
 
 
18
 
#include "config_begin.hpp"
19
 
#include <boost/container/detail/workaround.hpp>
20
 
 
21
 
namespace boost {
22
 
namespace container {
23
 
 
24
 
/// @cond
25
 
enum allocation_type_v
26
 
{  
27
 
   // constants for allocation commands
28
 
   allocate_new_v   = 0x01,
29
 
   expand_fwd_v     = 0x02,
30
 
   expand_bwd_v     = 0x04,
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,
35
 
   zero_memory_v = 0x20,
36
 
   try_shrink_in_place_v = 0x40
37
 
};
38
 
 
39
 
typedef int allocation_type;
40
 
/// @endcond
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;
48
 
 
49
 
}  //namespace container {
50
 
}  //namespace boost {
51
 
 
52
 
#include <boost/container/detail/config_end.hpp>
53
 
 
54
 
#endif   //BOOST_CONTAINER_ALLOCATION_TYPE_HPP