forked from boostorg/intrusive
Removed trailing spaces.
This commit is contained in:
1 parent
9d70abed82
commit
757475e59c
21 files changed
+59
-59
No files matched your search
@@ -68,10 +68,10 @@ class bounded_pointer
|
||||
operator= (const bounded_pointer<T2> & other)
|
||||
{ m_offset = other.m_offset; return *this; }
|
||||
|
||||
const bounded_pointer< typename boost::intrusive::detail::remove_const< T >::type >& unconst() const
|
||||
{ return *reinterpret_cast< const bounded_pointer< typename boost::intrusive::detail::remove_const< T >::type >* >(this); }
|
||||
const bounded_pointer< typename boost::intrusive::detail::remove_const< T >::type >& unconst() const
|
||||
{ return *reinterpret_cast< const bounded_pointer< typename boost::intrusive::detail::remove_const< T >::type >* >(this); }
|
||||
|
||||
bounded_pointer< typename boost::intrusive::detail::remove_const< T >::type >& unconst()
|
||||
bounded_pointer< typename boost::intrusive::detail::remove_const< T >::type >& unconst()
|
||||
{ return *reinterpret_cast< bounded_pointer< typename boost::intrusive::detail::remove_const< T >::type >* >(this); }
|
||||
|
||||
static mut_val_t* base()
|
||||
@@ -151,7 +151,7 @@ class bounded_reference
|
||||
bounded_reference()
|
||||
: m_offset(max_offset)
|
||||
{}
|
||||
|
||||
|
||||
bounded_reference(const bounded_reference& other)
|
||||
: m_offset(other.m_offset)
|
||||
{}
|
||||
@@ -222,7 +222,7 @@ class bounded_allocator
|
||||
m_in_use[p.m_offset] = true;
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
void deallocate(pointer p, size_t n)
|
||||
{
|
||||
assert(inited());
|
||||
@@ -239,12 +239,12 @@ class bounded_allocator
|
||||
// allocate non-constructed storage
|
||||
m_base = static_cast< T* >(::operator new [] (max_offset * sizeof(T)));
|
||||
}
|
||||
|
||||
|
||||
static bool inited()
|
||||
{
|
||||
return m_in_use.size() == max_offset;
|
||||
}
|
||||
|
||||
|
||||
static bool is_clear()
|
||||
{
|
||||
assert(inited());
|
||||
@@ -257,7 +257,7 @@ class bounded_allocator
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
static void destroy()
|
||||
{
|
||||
// deallocate storage without destructors
|
||||
|
||||
@@ -78,7 +78,7 @@ int main()
|
||||
//Create several MyClass objects, each one with a different value
|
||||
std::vector<MyClass> values;
|
||||
for(int i = 0; i < 100; ++i) values.push_back(MyClass(i));
|
||||
|
||||
|
||||
{
|
||||
List my_list;
|
||||
Slist my_slist;
|
||||
|
||||
@@ -154,7 +154,7 @@ void test_generic_assoc<ValueTraits, ContainerDefiner>::test_insert_erase_burst(
|
||||
}
|
||||
BOOST_TEST(testset.empty());
|
||||
}
|
||||
|
||||
|
||||
{ //Now random insertions + erasure
|
||||
assoc_type testset;
|
||||
typedef typename value_cont_type::iterator vec_iterator;
|
||||
|
||||
@@ -97,7 +97,7 @@ struct nonhook_node_member_value_traits
|
||||
{
|
||||
return pointer_traits<const_node_ptr>::pointer_to(static_cast<const node&>(value.*P));
|
||||
}
|
||||
|
||||
|
||||
static pointer to_value_ptr(node_ptr n)
|
||||
{
|
||||
return pointer_traits<pointer>::pointer_to
|
||||
|
||||
Reference in new issue
Block a user