1 #include <boost/test/unit_test.hpp>
8 #include "utilities/tl_allocator.hpp"
16 struct initialized_struct
18 initialized_struct(int i
):
22 bool operator<(initialized_struct
const & rhs
) const
34 list
<T
, tl_allocator
<T
> > vec
;
36 for (int i
= 0; i
!= 8192; ++i
)
42 void test_vector(void)
44 vector
<T
, tl_allocator
<T
> > vec
;
46 for (int i
= 0; i
!= 8192; ++i
)
53 set
<T
, std::less
<T
>, tl_allocator
<T
> > set
;
55 for (int i
= 0; i
!= 8192; ++i
)
61 BOOST_AUTO_TEST_CASE( rt_alloc_test_1
)
63 detail::tl_allocator
<8 * 1024 * 1024> rt_alloc
;
66 BOOST_AUTO_TEST_CASE( rt_alloc_test_2
)
69 test_list
<initialized_struct
>();
72 BOOST_AUTO_TEST_CASE( rt_alloc_test_3
)
75 test_vector
<initialized_struct
>();
78 BOOST_AUTO_TEST_CASE( rt_alloc_test_4
)
81 test_set
<initialized_struct
>();