Files
boost_unordered/test/helpers/base.cpp
Daniel James 8214c43060 Unit tests for unordered containers.
[SVN r2731]
2005-11-05 17:24:20 +00:00

32 lines
634 B
C++

// Copyright Daniel James 2005. Use, modification, and distribution are
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "./base.hpp"
#include <vector>
#include <algorithm>
namespace test
{
namespace
{
std::vector<void(*)()> end_checks;
}
void register_end_check(void(*check)())
{
end_checks.push_back(check);
}
void call_check(void(*check)())
{
check();
}
void end()
{
std::for_each(end_checks.begin(), end_checks.end(), call_check);
}
}