forked from boostorg/unordered
Unit tests for unordered containers.
[SVN r2731]
This commit is contained in:
1 parent
431c5b76e5
commit
8214c43060
59 files changed
+5242
No files matched your search
@@ -0,0 +1,31 @@
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user