添加bitmap
This commit is contained in:
8
TinySTL/Bitmap.h
Normal file
8
TinySTL/Bitmap.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef _BITMAP_H_
|
||||
#define _BITMAP_H_
|
||||
|
||||
namespace TinySTL{
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -41,9 +41,12 @@
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IncludePath>C:\Users\zxh\Desktop\boost_1_56_0;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>C:\Users\zxh\Desktop\boost_1_56_0\libs;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<IncludePath>C:\Users\zxh\Desktop\boost_1_56_0;$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
@@ -83,6 +86,7 @@
|
||||
<ClInclude Include="Algorithm.h" />
|
||||
<ClInclude Include="Alloc.h" />
|
||||
<ClInclude Include="Allocator.h" />
|
||||
<ClInclude Include="Bitmap.h" />
|
||||
<ClInclude Include="CircularBuffer.h" />
|
||||
<ClInclude Include="Construct.h" />
|
||||
<ClInclude Include="Iterator.h" />
|
||||
|
||||
@@ -62,5 +62,8 @@
|
||||
<ClInclude Include="CircularBuffer.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Bitmap.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
@@ -6,22 +7,23 @@
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
|
||||
#include "Vector.h"
|
||||
#include <boost\circular_buffer.hpp>
|
||||
|
||||
#include "CircularBuffer.h"
|
||||
#include "Profiler\Profiler.h"
|
||||
#include "ReverseIterator.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace TinySTL;
|
||||
using namespace TinySTL::Profiler;
|
||||
|
||||
int main(){
|
||||
int i = 11; int *ptr = &i;
|
||||
int array[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
|
||||
TinySTL::vector<int> v(array, array + 9);
|
||||
|
||||
|
||||
for (auto rit = v.rbegin(); rit != v.rend();rit = rit + 1){ cout << *rit << endl; }
|
||||
//TinySTL::reverse_iterator<std::list<int>::iterator> rit(List.begin());
|
||||
|
||||
TinySTL::circular_buffer<int, 10000> cb(10000, 0);
|
||||
//boost::circular_buffer<int> cb(10000, 0);
|
||||
ProfilerInstance::start();
|
||||
for (int i = 0; i != 100; ++i){
|
||||
cb.push_back(i);
|
||||
}
|
||||
ProfilerInstance::finish();
|
||||
ProfilerInstance::dumpDuringTime();
|
||||
system("pause");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user