cpp-btree with a small fix
Перейти к файлу
Vitaliy Filippov 8de8b467ac Fix "partly outside array bounds" warnings for GCC 12 2024-01-15 18:04:01 +03:00
CMakeLists.txt Update README / CMakeLists.txt; fix for -Wformat warning in btree_bench.cc 2013-02-08 22:56:25 -08:00
COPYING Update copyright notices; scrub a few references to Cord, StringPiece 2013-01-25 00:46:48 -08:00
README Update README / CMakeLists.txt; fix for -Wformat warning in btree_bench.cc 2013-02-08 22:56:25 -08:00
btree.h Fix "partly outside array bounds" warnings for GCC 12 2024-01-15 18:04:01 +03:00
btree_bench.cc Fix the printf problem -- use std::cout :) 2013-02-08 23:14:47 -08:00
btree_container.h Fix several range constructor bugs: (a) btree_multiset's range constructor did not compile (b) btree_map's range constructor ignored the inputs! These bugs were masked by the test, which due to an oversight skipped the use of range constructors as part of the {base,unique,multi}_checker testing types. Verified that the corrected test fails without the fix, added an additional sanity check (which made the problem stand out independent of the problems discovered in btree_test.h) 2013-02-05 22:04:33 -08:00
btree_map.h Fix several range constructor bugs: (a) btree_multiset's range constructor did not compile (b) btree_map's range constructor ignored the inputs! These bugs were masked by the test, which due to an oversight skipped the use of range constructors as part of the {base,unique,multi}_checker testing types. Verified that the corrected test fails without the fix, added an additional sanity check (which made the problem stand out independent of the problems discovered in btree_test.h) 2013-02-05 22:04:33 -08:00
btree_set.h Fix several range constructor bugs: (a) btree_multiset's range constructor did not compile (b) btree_map's range constructor ignored the inputs! These bugs were masked by the test, which due to an oversight skipped the use of range constructors as part of the {base,unique,multi}_checker testing types. Verified that the corrected test fails without the fix, added an additional sanity check (which made the problem stand out independent of the problems discovered in btree_test.h) 2013-02-05 22:04:33 -08:00
btree_test.cc Fixes for open-source build following upstream bug fix 2013-02-05 22:12:13 -08:00
btree_test.h Fix several range constructor bugs: (a) btree_multiset's range constructor did not compile (b) btree_map's range constructor ignored the inputs! These bugs were masked by the test, which due to an oversight skipped the use of range constructors as part of the {base,unique,multi}_checker testing types. Verified that the corrected test fails without the fix, added an additional sanity check (which made the problem stand out independent of the problems discovered in btree_test.h) 2013-02-05 22:04:33 -08:00
btree_test_flags.cc Update copyright notices; scrub a few references to Cord, StringPiece 2013-01-25 00:46:48 -08:00
safe_btree.h Update copyright notices; scrub a few references to Cord, StringPiece 2013-01-25 00:46:48 -08:00
safe_btree_map.h Update copyright notices; scrub a few references to Cord, StringPiece 2013-01-25 00:46:48 -08:00
safe_btree_set.h Update copyright notices; scrub a few references to Cord, StringPiece 2013-01-25 00:46:48 -08:00
safe_btree_test.cc Update copyright notices; scrub a few references to Cord, StringPiece 2013-01-25 00:46:48 -08:00

README

This library is a C++ template library and, as such, there is no
library to build and install.  Copy the .h files and use them!

See http://code.google.com/p/cpp-btree/wiki/UsageInstructions for
details.

----

To build and run the provided tests, however, you will need to install
CMake, the Google C++ Test framework, and the Google flags package.

Download and install CMake from http://www.cmake.org

Download and build the GoogleTest framework from
http://code.google.com/p/googletest

Download and install gflags from https://code.google.com/p/gflags

Set GTEST_ROOT to the directory where GTEST was built.
Set GFLAGS_ROOT to the directory prefix where GFLAGS is installed.

export GTEST_ROOT=/path/for/gtest-x.y
export GFLAGS_ROOT=/opt

cmake . -Dbuild_tests=ON

For example, to build on a Unix system with the clang++ compiler,

export GTEST_ROOT=$(HOME)/src/googletest
export GFLAGS_ROOT=/opt
cmake . -G "Unix Makefiles" -Dbuild_tests=ON -DCMAKE_CXX_COMPILER=clang++