mirror of
https://github.com/boostorg/container.git
synced 2026-01-19 04:02:17 +00:00
Remove constructible_with_allocator_suffix/constructible_with_allocator_prefix from documentation as they are not needed now. Utilities will reman anonymous to maintain a minimum backwards compatibility.
This commit is contained in:
@@ -138,7 +138,6 @@ bool test_propagate_allocator()
|
||||
PropagateCont c2(c); //should propagate 223
|
||||
BOOST_TEST (c2.get_stored_allocator().id_ == 223);
|
||||
BOOST_TEST (c2.get_stored_allocator().ctr_copies_ >= 1);
|
||||
BOOST_TEST (c2.get_stored_allocator().ctr_moves_ >= 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().assign_copies_ == 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().assign_moves_ == 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().swaps_ == 0);
|
||||
@@ -237,8 +236,6 @@ bool test_propagate_allocator()
|
||||
BOOST_TEST (c.get_stored_allocator().id_ == 223);
|
||||
NoPropagateCont c2(c); //should NOT propagate 223
|
||||
BOOST_TEST (c2.get_stored_allocator().id_ == 224);
|
||||
BOOST_TEST (c2.get_stored_allocator().ctr_copies_ >= 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().ctr_moves_ >= 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().assign_copies_ == 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().assign_moves_ == 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().swaps_ == 0);
|
||||
@@ -249,8 +246,6 @@ bool test_propagate_allocator()
|
||||
NoPropagateCont c; //stored 334
|
||||
BOOST_TEST (c.get_stored_allocator().id_ == 334);
|
||||
NoPropagateCont c2(boost::move(c)); // should NOT propagate 334
|
||||
BOOST_TEST (c2.get_stored_allocator().ctr_copies_ >= 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().ctr_moves_ >= 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().assign_copies_ == 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().assign_moves_ == 0);
|
||||
BOOST_TEST (c2.get_stored_allocator().swaps_ == 0);
|
||||
|
||||
@@ -230,39 +230,4 @@ struct allocator_argument_tester
|
||||
int value;
|
||||
};
|
||||
|
||||
namespace boost {
|
||||
namespace container {
|
||||
|
||||
template<unsigned int AllocatorTag>
|
||||
struct constructible_with_allocator_prefix
|
||||
< ::allocator_argument_tester<ConstructiblePrefix, AllocatorTag> >
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
template<unsigned int AllocatorTag>
|
||||
struct constructible_with_allocator_prefix
|
||||
< ::allocator_argument_tester<ErasedTypePrefix, AllocatorTag> >
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
|
||||
template<unsigned int AllocatorTag>
|
||||
struct constructible_with_allocator_suffix
|
||||
< ::allocator_argument_tester<ConstructibleSuffix, AllocatorTag> >
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
template<unsigned int AllocatorTag>
|
||||
struct constructible_with_allocator_suffix
|
||||
< ::allocator_argument_tester<ErasedTypeSuffix, AllocatorTag> >
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
} //namespace container {
|
||||
} //namespace boost {
|
||||
|
||||
#endif //BOOST_CONTAINER_TEST_ALLOCATOR_ARGUMENT_TESTER_HPP
|
||||
|
||||
@@ -67,16 +67,5 @@ int main()
|
||||
< allocator_argument_tester<ErasedTypePrefix, 0>
|
||||
, propagation_test_allocator<float, 0>
|
||||
>::value ));
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == constructible_with_allocator_prefix
|
||||
< allocator_argument_tester<ConstructiblePrefix, 0> >::value ));
|
||||
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == constructible_with_allocator_suffix
|
||||
< allocator_argument_tester<ConstructibleSuffix, 0> >::value ));
|
||||
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == constructible_with_allocator_prefix
|
||||
< allocator_argument_tester<ErasedTypePrefix, 0> >::value ));
|
||||
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == constructible_with_allocator_suffix
|
||||
< allocator_argument_tester<ErasedTypeSuffix, 0> >::value ));
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user