From 9731dc86fa9b12adc064b99910dddb58932c71cf Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 10 May 2010 07:15:05 +0000 Subject: Added the new Bu::CacheStoreFiles, it's an uber-simple cache storage system that maybe would be better to call an example than a fully fledged storage strategy. It just names files based on your keys. It's very slow, and very wasteful, and shouldn't be used long-term in most normal cache systems. --- src/tests/list2.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tests/list2.cpp (limited to 'src/tests/list2.cpp') diff --git a/src/tests/list2.cpp b/src/tests/list2.cpp new file mode 100644 index 0000000..cd02aef --- /dev/null +++ b/src/tests/list2.cpp @@ -0,0 +1,19 @@ +#include +#include + +using namespace Bu; + +int main() +{ + List lInt; + + lInt.append( 512 ); + lInt.append( 1024 ); + lInt.append( 4096 ); + lInt.append( 12 ); + lInt.erase( 12 ); + lInt.append( 12 ); + lInt.erase( 12 ); + lInt.append( 12 ); +} + -- cgit v1.2.3