mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 05:54:29 +02:00
Add tests for container_fwd to hash tests.
[SVN r31044]
This commit is contained in:
@@ -46,6 +46,7 @@ rule hash-test-output ( name + )
|
||||
[ hash-test hash_set_test ]
|
||||
[ hash-test hash_map_test ]
|
||||
[ hash-test link_test link_test_2 ]
|
||||
[ hash-test container_fwd_test ]
|
||||
;
|
||||
}
|
||||
|
||||
|
@@ -25,6 +25,7 @@ test-suite functional/hash
|
||||
[ run hash_set_test.cpp framework ]
|
||||
[ run hash_map_test.cpp framework ]
|
||||
[ run link_test.cpp link_test_2.cpp ]
|
||||
[ run container_fwd_test.cpp ]
|
||||
;
|
||||
|
||||
build-project ../examples ;
|
||||
|
87
hash/test/container_fwd_test.cpp
Normal file
87
hash/test/container_fwd_test.cpp
Normal file
@@ -0,0 +1,87 @@
|
||||
#include <boost/functional/detail/container_fwd.hpp>
|
||||
|
||||
template <class charT, class traits, class Allocator>
|
||||
void test(std::basic_string<charT, traits, Allocator> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <class T, class Allocator>
|
||||
void test(std::deque<T, Allocator> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <class T, class Allocator>
|
||||
void test(std::list<T, Allocator> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <class T, class Allocator>
|
||||
void test(std::vector<T, Allocator> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <class Key, class T, class Compare, class Allocator>
|
||||
void test(std::map<Key, T, Compare, Allocator> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <class Key, class T, class Compare, class Allocator>
|
||||
void test(std::multimap<Key, T, Compare, Allocator> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <class Key, class Compare, class Allocator>
|
||||
void test(std::set<Key, Compare, Allocator> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <class Key, class Compare, class Allocator>
|
||||
void test(std::multiset<Key, Compare, Allocator> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <std::size_t N>
|
||||
void test(std::bitset<N> const&)
|
||||
{
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void test(std::complex<T> const&)
|
||||
{
|
||||
}
|
||||
|
||||
#include <deque>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <bitset>
|
||||
#include <string>
|
||||
#include <complex>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::deque<int> x1;
|
||||
std::list<std::string> x2;
|
||||
std::vector<float> x3;
|
||||
std::vector<bool> x4;
|
||||
std::map<int, int> x5;
|
||||
std::multimap<float, int*> x6;
|
||||
std::set<std::string> x7;
|
||||
std::multiset<std::vector<int> > x8;
|
||||
std::bitset<10> x9;
|
||||
std::string x10;
|
||||
std::complex<double> x11;
|
||||
|
||||
test(x1);
|
||||
test(x2);
|
||||
test(x3);
|
||||
test(x4);
|
||||
test(x5);
|
||||
test(x6);
|
||||
test(x7);
|
||||
test(x8);
|
||||
test(x9);
|
||||
test(x10);
|
||||
test(x11);
|
||||
}
|
Reference in New Issue
Block a user