libcopp  1.1.0
stack_allocator_split_segment.h
Go to the documentation of this file.
1 #ifndef COPP_STACKCONTEXT_ALLOCATOR_SPLIT_SEGMENT_H
2 #define COPP_STACKCONTEXT_ALLOCATOR_SPLIT_SEGMENT_H
3 
4 #pragma once
5 
6 #include <cstddef>
7 
9 
10 #ifdef COPP_HAS_ABI_HEADERS
11 #include COPP_ABI_PREFIX
12 #endif
13 
14 namespace copp {
15  struct stack_context;
16 
17  namespace allocator {
18 
24  public:
25  stack_allocator_split_segment() UTIL_CONFIG_NOEXCEPT;
27 
33  void allocate(stack_context &, std::size_t) UTIL_CONFIG_NOEXCEPT;
34 
39  void deallocate(stack_context &) UTIL_CONFIG_NOEXCEPT;
40  };
41  }
42 }
43 
44 #ifdef COPP_HAS_ABI_HEADERS
45 #include COPP_ABI_SUFFIX
46 #endif
47 
48 #endif
void allocate(stack_context &, std::size_t) UTIL_CONFIG_NOEXCEPT
void deallocate(stack_context &) UTIL_CONFIG_NOEXCEPT
memory allocator this allocator will create buffer using gcc split segment api