BVB Source Codes

mars Show allocation_type.hpp Source code

Return Download mars: download allocation_type.hpp Source code - Download mars Source code - Type:.hpp
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2005-2013. 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. #ifndef BOOST_CONFIG_HPP
  15. #  include <boost/config.hpp>
  16. #endif
  17.  
  18. #if defined(BOOST_HAS_PRAGMA_ONCE)
  19. #  pragma once
  20. #endif
  21.  
  22. #include <boost/container/detail/config_begin.hpp>
  23. #include <boost/container/detail/workaround.hpp>
  24.  
  25. namespace mars_boost {} namespace boost = mars_boost; namespace mars_boost {
  26. namespace container {
  27.  
  28. #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
  29. enum allocation_type_v
  30. {
  31.    // constants for allocation commands
  32.    allocate_new_v   = 0x01,
  33.    expand_fwd_v     = 0x02,
  34.    expand_bwd_v     = 0x04,
  35. //   expand_both    = expand_fwd | expand_bwd,
  36. //   expand_or_new  = allocate_new | expand_both,
  37.    shrink_in_place_v = 0x08,
  38.    nothrow_allocation_v = 0x10,
  39.    zero_memory_v = 0x20,
  40.    try_shrink_in_place_v = 0x40
  41. };
  42.  
  43. typedef unsigned int allocation_type;
  44. #endif   //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
  45. static const allocation_type allocate_new       = (allocation_type)allocate_new_v;
  46. static const allocation_type expand_fwd         = (allocation_type)expand_fwd_v;
  47. static const allocation_type expand_bwd         = (allocation_type)expand_bwd_v;
  48. static const allocation_type shrink_in_place    = (allocation_type)shrink_in_place_v;
  49. static const allocation_type try_shrink_in_place= (allocation_type)try_shrink_in_place_v;
  50. static const allocation_type nothrow_allocation = (allocation_type)nothrow_allocation_v;
  51. static const allocation_type zero_memory        = (allocation_type)zero_memory_v;
  52.  
  53. }  //namespace container {
  54. }  //namespace mars_boost {} namespace boost = mars_boost; namespace mars_boost {
  55.  
  56. #include <boost/container/detail/config_end.hpp>
  57.  
  58. #endif   //BOOST_CONTAINER_ALLOCATION_TYPE_HPP
  59.  
downloadallocation_type.hpp Source code - Download mars Source code
Related Source Codes/Software:
Hero - Elegant transition library for iOS & tvOS 2017-06-09
deep-photo-styletransfer - Code and data for paper "Deep Photo Style Transfer... 2017-06-09
mastodon - A GNU Social-compatible microblogging server ... 2017-06-09
plyr - A simple HTML5, YouTube and Vimeo player ... 2017-06-08
prepack - Prepack is a partial evaluator for JavaScript. Pre... 2017-06-08
Public-APIs - 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top