Debian Codegraph @

vendor/Heap-Layers/heaps/combining/tryheap.h

raw symbols SCIP
1 // -*- C++ -*-cxx . . $ `<file>/vendor/Heap-Layers/heaps/combining/tryheap.h`/
2
3 /*
4
5 Heap Layers: An Extensible Memory Allocation Infrastructure
6
7 Copyright (C) 2000-2020 by Emery Berger
8 http://www.emeryberger.com
9 [email protected]
10
11 Heap Layers is distributed under the terms of the Apache 2.0 license.
12
13 You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 */
17
18 #ifndef HL_TRYHEAP_H
19 #define HL_TRYHEAP_Hcxx . . $ `vendor/Heap-Layers/heaps/combining/tryheap.h:19:9`!
20
21 #include <cstddef>
22
23 namespace HLcxx . . $ HL/ {
24
25 template <class Heap1, class Heap2>
26 class TryHeapcxx . . $ HL/TryHeap# : public Heap2 {
27 public:
28
29 TryHeapcxx . . $ HL/TryHeap#`TryHeap<Heap1, Heap2>`(49f6e7a06ebc5aa8). (void)
30 {}
31
32 inline void * malloccxx . . $ HL/TryHeap#malloc(bfcfa4d6b7f7ef64). (size_t sz) {
33 void * ptr = heap1cxx . . $ HL/TryHeap#heap1..malloc (sz);
34 if (ptr == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
35 ptr = Heap2::malloc (sz);
36 return ptr;
37 }
38
39 inline void freecxx . . $ HL/TryHeap#free(5d22bdacc48458e8). (void * ptr) {
40 heap1cxx . . $ HL/TryHeap#heap1..free (ptr);
41 }
42
43 private:
44 Heap1 heap1cxx . . $ HL/TryHeap#heap1.;
45 };
46
47 }
48
49 #endif