Click here to Skip to main content
15,891,409 members
Articles / Desktop Programming / MFC

Tree Container Library

Rate me:
Please Sign up or sign in to vote.
4.85/5 (29 votes)
22 Aug 2007Zlib10 min read 229.4K   7.2K   111  
A generic template class library for storing data in a tree-like structure.
#pragma once

template<typename treetype>
class nonmodifying_algorithm_tester : public basic_tree_tester<treetype>
{
public:
	nonmodifying_algorithm_tester() {}
	~nonmodifying_algorithm_tester() {}

	void run();

private:
	void test_for_each();
	void test_count();
	void test_count_if();
	void test_min_element();
	void test_max_element();
	void test_find();
	void test_find_if();
	void test_search_n();
	void test_search();
	void test_find_end();
	void test_find_first_of();
	void test_adjacent_find();
	void test_equal();
	void test_mismatch();
	void test_lexicographical_compare();

};

void test_nonmodifying_algorithms();

#include "nonmodifying_algorithm_tester.inl"

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The zlib/libpng License



Comments and Discussions