diff --git a/TinySTL/Bitmap.h b/TinySTL/Bitmap.h new file mode 100644 index 0000000..7952a6a --- /dev/null +++ b/TinySTL/Bitmap.h @@ -0,0 +1,8 @@ +#ifndef _BITMAP_H_ +#define _BITMAP_H_ + +namespace TinySTL{ + +} + +#endif \ No newline at end of file diff --git a/TinySTL/TinySTL.vcxproj b/TinySTL/TinySTL.vcxproj index 5cc5d5c..770fdc2 100644 --- a/TinySTL/TinySTL.vcxproj +++ b/TinySTL/TinySTL.vcxproj @@ -41,9 +41,12 @@ true + C:\Users\zxh\Desktop\boost_1_56_0;$(IncludePath) + C:\Users\zxh\Desktop\boost_1_56_0\libs;$(LibraryPath) false + C:\Users\zxh\Desktop\boost_1_56_0;$(IncludePath) @@ -83,6 +86,7 @@ + diff --git a/TinySTL/TinySTL.vcxproj.filters b/TinySTL/TinySTL.vcxproj.filters index 23127ef..7dc41d5 100644 --- a/TinySTL/TinySTL.vcxproj.filters +++ b/TinySTL/TinySTL.vcxproj.filters @@ -62,5 +62,8 @@ 头文件 + + 头文件 + \ No newline at end of file diff --git a/TinySTL/main.cpp b/TinySTL/main.cpp index 4342709..3985bc9 100644 --- a/TinySTL/main.cpp +++ b/TinySTL/main.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -6,22 +7,23 @@ #include #include -#include "Vector.h" +#include + +#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 v(array, array + 9); - - - for (auto rit = v.rbegin(); rit != v.rend();rit = rit + 1){ cout << *rit << endl; } - //TinySTL::reverse_iterator::iterator> rit(List.begin()); - + TinySTL::circular_buffer cb(10000, 0); + //boost::circular_buffer cb(10000, 0); + ProfilerInstance::start(); + for (int i = 0; i != 100; ++i){ + cb.push_back(i); + } + ProfilerInstance::finish(); + ProfilerInstance::dumpDuringTime(); system("pause"); return 0; }