Debian Codegraph @

gcc/d/dmd/root/bitarray.h

raw
1 /* Copyright (C) 2011-2025 by The D Language Foundation, All Rights Reserved
2 * written by Walter Bright
3 * https://www.digitalmars.com
4 * Distributed under the Boost Software License, Version 1.0.
5 * https://www.boost.org/LICENSE_1_0.txt
6 * https://github.com/dlang/dmd/blob/master/src/dmd/root/bitarray.h
7 */
8
9 #pragma once
10
11 #include "dsystem.h"
12 #include "rmem.h"
13
14 struct BitArray
15 {
16 BitArray()
17 : len(0)
18 , ptr(nullptr)
19 {}
20
21 ~BitArray()
22 {
23 mem.xfree(ptr);
24 }
25
26 d_size_t len;
27 d_size_t *ptr;
28
29 private:
30 BitArray(const BitArray&);
31 };