aboutsummaryrefslogtreecommitdiff
path: root/src/tests/list2.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-10 07:15:05 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-10 07:15:05 +0000
commit9731dc86fa9b12adc064b99910dddb58932c71cf (patch)
tree00a358ff397e2b7b0fc3377564288f5c86b850c5 /src/tests/list2.cpp
parent8baf7e1e75a185c742dc6d5b27e50058635e5522 (diff)
downloadlibbu++-9731dc86fa9b12adc064b99910dddb58932c71cf.tar.gz
libbu++-9731dc86fa9b12adc064b99910dddb58932c71cf.tar.bz2
libbu++-9731dc86fa9b12adc064b99910dddb58932c71cf.tar.xz
libbu++-9731dc86fa9b12adc064b99910dddb58932c71cf.zip
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.
Diffstat (limited to 'src/tests/list2.cpp')
-rw-r--r--src/tests/list2.cpp19
1 files changed, 19 insertions, 0 deletions
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 @@
1#include <bu/list.h>
2#include <bu/sio.h>
3
4using namespace Bu;
5
6int main()
7{
8 List<int64_t> lInt;
9
10 lInt.append( 512 );
11 lInt.append( 1024 );
12 lInt.append( 4096 );
13 lInt.append( 12 );
14 lInt.erase( 12 );
15 lInt.append( 12 );
16 lInt.erase( 12 );
17 lInt.append( 12 );
18}
19