初始化alloc成员
This commit is contained in:
@@ -44,6 +44,12 @@ namespace TinySTL{
|
||||
static void *reallocate(void *ptr, size_t old_sz, size_t new_sz);
|
||||
};
|
||||
|
||||
char *alloc::start_free = 0;
|
||||
char *alloc::end_free = 0;
|
||||
size_t alloc::heap_size = 0;
|
||||
alloc::obj *alloc::free_list[alloc::ENFreeLists::NFREELISTS] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -79,6 +79,7 @@
|
||||
<ClCompile Include="main.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Alloc.h" />
|
||||
<ClInclude Include="Construct.h" />
|
||||
<ClInclude Include="TypeTraits.h" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -26,5 +26,8 @@
|
||||
<ClInclude Include="Construct.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Alloc.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user