Skip to content

Commit 8c1bfe2

Browse files
committed
Removed trailing whitespaces
1 parent a67982b commit 8c1bfe2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+278
-278
lines changed

bench/bench_adaptive_node_pool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void list_test_template(std::size_t num_iterations, std::size_t num_elements, bo
144144
}
145145
timer.stop();
146146
tinsert = timer.elapsed().wall;
147-
147+
148148
insert_inuse = boost_cont_in_use_memory();
149149
insert_stats = boost_cont_malloc_stats();
150150
/*
@@ -248,7 +248,7 @@ void list_test_template(std::size_t num_iterations, std::size_t num_elements, bo
248248

249249
void print_header()
250250
{
251-
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
251+
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
252252
<< "Insertion time(ns)" << ";"
253253
<< "System bytes" << ";"
254254
<< "System overhead(%)" << ";"

bench/bench_alloc_expand_bwd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ struct has_trivial_destructor_after_move<MyInt>
8686

8787
void print_header()
8888
{
89-
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
90-
<< "Capacity" << ";" << "push_back(ns)" << ";" << "Allocator calls" << ";"
89+
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
90+
<< "Capacity" << ";" << "push_back(ns)" << ";" << "Allocator calls" << ";"
9191
<< "New allocations" << ";" << "Bwd expansions" << std::endl;
9292
}
9393

bench/bench_alloc_expand_fwd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ void vector_test_template(unsigned int num_iterations, unsigned int num_elements
228228

229229
void print_header()
230230
{
231-
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
232-
<< "Capacity" << ";" << "push_back(ns)" << ";" << "Allocator calls" << ";"
231+
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
232+
<< "Capacity" << ";" << "push_back(ns)" << ";" << "Allocator calls" << ";"
233233
<< "New allocations" << ";" << "Fwd expansions" << std::endl;
234234
}
235235

bench/bench_alloc_shrink_to_fit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class MyInt
6565

6666
void print_header()
6767
{
68-
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
68+
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
6969
<< "num_shrink" << ";" << "shrink_to_fit(ns)" << std::endl;
7070
}
7171

bench/bench_alloc_stable_vector_burst_allocation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void stable_vector_test_template(unsigned int num_iterations, unsigned int num_e
148148
timer.start();
149149

150150
for(unsigned int r = 0; r != num_iterations; ++r){
151-
std::size_t init_pos = (num_iterations-1)-r;
151+
std::size_t init_pos = (num_iterations-1)-r;
152152
l.erase(ranges_to_erase[init_pos], l.end());
153153
}
154154
timer.stop();
@@ -180,7 +180,7 @@ void stable_vector_test_template(unsigned int num_iterations, unsigned int num_e
180180

181181
void print_header()
182182
{
183-
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
183+
std::cout << "Allocator" << ";" << "Iterations" << ";" << "Size" << ";"
184184
<< "Insertion time(ns)" << ";" << "Erasure time(ns)" << ";"
185185
<< std::endl;
186186
}

bench/detail/varray.hpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ template <typename Value, std::size_t Capacity, typename Strategy>
5353
class varray;
5454

5555
namespace strategy {
56-
56+
5757
// TODO: Improve error messages
5858
// possibly include N in the strategy, and provide size as an optoinal allocate_failed parameter?
5959
// Example of current error with reserve(4) when capacity is 3:
6060
// "boost/container/varray.hpp(66): size can't exceed the capacity"
6161
// Could say
62-
// "cannot reserve(4) due to fixed capacity of 3 elements"
62+
// "cannot reserve(4) due to fixed capacity of 3 elements"
6363

6464
//! @brief The default strategy.
6565
//!
@@ -189,12 +189,12 @@ struct varray_traits
189189
* change in size, along with the static allocation, low overhead, and fixed capacity of boost::array.
190190
*
191191
* A varray is a sequence that supports random access to elements, constant time insertion and
192-
* removal of elements at the end, and linear time insertion and removal of elements at the beginning or
192+
* removal of elements at the end, and linear time insertion and removal of elements at the beginning or
193193
* in the middle. The number of elements in a varray may vary dynamically up to a fixed capacity
194-
* because elements are stored within the object itself similarly to an array. However, objects are
194+
* because elements are stored within the object itself similarly to an array. However, objects are
195195
* initialized as they are inserted into varray unlike C arrays or std::array which must construct
196196
* all elements on instantiation. The behavior of varray enables the use of statically allocated
197-
* elements in cases with complex object lifetime requirements that would otherwise not be trivially
197+
* elements in cases with complex object lifetime requirements that would otherwise not be trivially
198198
* possible.
199199
*
200200
* @par Error Handling
@@ -219,7 +219,7 @@ class varray
219219
typedef container_detail::varray_traits<
220220
Value, Capacity, Strategy
221221
> vt;
222-
222+
223223
typedef typename vt::error_handler errh;
224224

225225
BOOST_MPL_ASSERT_MSG(
@@ -354,7 +354,7 @@ class varray
354354
: m_size(0)
355355
{
356356
//BOOST_CONCEPT_ASSERT((boost_concepts::ForwardTraversal<Iterator>)); // Make sure you passed a ForwardIterator
357-
357+
358358
this->assign(first, last); // may throw
359359
}
360360

@@ -393,7 +393,7 @@ class varray
393393
: m_size(other.size())
394394
{
395395
errh::check_capacity(*this, other.size()); // may throw
396-
396+
397397
namespace sv = varray_detail;
398398
sv::uninitialized_copy(other.begin(), other.end(), this->begin()); // may throw
399399
}
@@ -610,7 +610,7 @@ class varray
610610
typedef typename
611611
vt::use_optimized_swap use_optimized_swap;
612612

613-
this->swap_dispatch(other, use_optimized_swap());
613+
this->swap_dispatch(other, use_optimized_swap());
614614
}
615615

616616
//! @pre <tt>count <= capacity()</tt>
@@ -672,7 +672,7 @@ class varray
672672
else
673673
{
674674
errh::check_capacity(*this, count); // may throw
675-
675+
676676
std::uninitialized_fill(this->end(), this->begin() + count, value); // may throw
677677
}
678678
m_size = count; // update end
@@ -716,7 +716,7 @@ class varray
716716
typedef typename vt::disable_trivial_init dti;
717717

718718
errh::check_capacity(*this, m_size + 1); // may throw
719-
719+
720720
namespace sv = varray_detail;
721721
sv::construct(dti(), this->end(), value); // may throw
722722
++m_size; // update end
@@ -844,7 +844,7 @@ class varray
844844
namespace sv = varray_detail;
845845

846846
difference_type to_move = std::distance(position, this->end());
847-
847+
848848
// TODO - should following lines check for exception and revert to the old size?
849849

850850
if ( count < static_cast<size_type>(to_move) )
@@ -945,9 +945,9 @@ class varray
945945

946946
errh::check_iterator_end_eq(*this, first);
947947
errh::check_iterator_end_eq(*this, last);
948-
948+
949949
difference_type n = std::distance(first, last);
950-
950+
951951
//TODO - add invalid range check?
952952
//BOOST_ASSERT_MSG(0 <= n, "invalid range");
953953
//TODO - add this->size() check?
@@ -1346,7 +1346,7 @@ class varray
13461346
return boost::addressof(*(this->ptr()));
13471347
}
13481348

1349-
1349+
13501350
//! @brief Returns iterator to the first element.
13511351
//!
13521352
//! @return iterator to the first element contained in the vector.
@@ -1606,7 +1606,7 @@ class varray
16061606
typename varray<value_type, C, S>::aligned_storage_type
16071607
>::type
16081608
storage_type;
1609-
1609+
16101610
storage_type temp;
16111611
Value * temp_ptr = reinterpret_cast<Value*>(temp.address());
16121612

@@ -1729,9 +1729,9 @@ class varray
17291729
void insert_dispatch(iterator position, Iterator first, Iterator last, boost::random_access_traversal_tag const&)
17301730
{
17311731
//BOOST_CONCEPT_ASSERT((boost_concepts::RandomAccessTraversal<Iterator>)); // Make sure you passed a RandomAccessIterator
1732-
1732+
17331733
errh::check_iterator_end_eq(*this, position);
1734-
1734+
17351735
typename boost::iterator_difference<Iterator>::type
17361736
count = std::distance(first, last);
17371737

@@ -1766,7 +1766,7 @@ class varray
17661766

17671767
std::ptrdiff_t d = std::distance(position, this->begin() + Capacity);
17681768
std::size_t count = sv::uninitialized_copy_s(first, last, position, d); // may throw
1769-
1769+
17701770
errh::check_capacity(*this, count <= static_cast<std::size_t>(d) ? m_size + count : Capacity + 1); // may throw
17711771

17721772
m_size += count;
@@ -1775,7 +1775,7 @@ class varray
17751775
{
17761776
typename boost::iterator_difference<Iterator>::type
17771777
count = std::distance(first, last);
1778-
1778+
17791779
errh::check_capacity(*this, m_size + count); // may throw
17801780

17811781
this->insert_in_the_middle(position, first, last, count); // may throw
@@ -1977,7 +1977,7 @@ class varray<Value, 0, Strategy>
19771977
errh::check_capacity(*this, count); // may throw
19781978
}
19791979

1980-
1980+
19811981
// nothrow
19821982
void reserve(size_type count)
19831983
{

bench/detail/varray_concept.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <boost/concept_check.hpp>
1414

1515
namespace boost { namespace container { namespace container_detail { namespace concept {
16-
16+
1717
/**
1818
* VArrayStrategyConcept
1919
*
@@ -41,7 +41,7 @@ struct VArrayStrategy {
4141

4242
// must implement allocate_failed
4343
str->allocate_failed();
44-
44+
4545
boost::ignore_unused_variable_warning(str);
4646
}
4747
};

bench/detail/varray_util.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ namespace boost { namespace container { namespace varray_detail {
5252
template <typename I>
5353
struct are_elements_contiguous : boost::is_pointer<I>
5454
{};
55-
55+
5656
#if defined(BOOST_CONTAINER_VARRAY_ENABLE_VECTORS_OPTIMIZATION) && !defined(BOOST_NO_EXCEPTIONS)
57-
57+
5858
template <typename Pointer>
5959
struct are_elements_contiguous<
6060
boost::container::container_detail::vector_const_iterator<Pointer>
@@ -68,7 +68,7 @@ struct are_elements_contiguous<
6868
{};
6969

7070
#if defined(BOOST_DINKUMWARE_STDLIB)
71-
71+
7272
template <typename T>
7373
struct are_elements_contiguous<
7474
std::_Vector_const_iterator<T>
@@ -101,7 +101,7 @@ struct are_elements_contiguous<
101101
#else // OTHER_STDLIB
102102

103103
// TODO - add other iterators implementations
104-
104+
105105
#endif // STDLIB
106106

107107
#endif // BOOST_CONTAINER_VARRAY_ENABLE_VECTORS_OPTIMIZATION && !BOOST_NO_EXCEPTIONS
@@ -212,7 +212,7 @@ inline O copy(I first, I last, O dst)
212212
>
213213
>::type
214214
use_memmove;
215-
215+
216216
return copy_dispatch(first, last, dst, use_memmove()); // may throw
217217
}
218218

bench/varray.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ namespace boost { namespace container {
3232
* change in size, along with the static allocation, low overhead, and fixed capacity of boost::array.
3333
*
3434
* A varray is a sequence that supports random access to elements, constant time insertion and
35-
* removal of elements at the end, and linear time insertion and removal of elements at the beginning or
35+
* removal of elements at the end, and linear time insertion and removal of elements at the beginning or
3636
* in the middle. The number of elements in a varray may vary dynamically up to a fixed capacity
37-
* because elements are stored within the object itself similarly to an array. However, objects are
37+
* because elements are stored within the object itself similarly to an array. However, objects are
3838
* initialized as they are inserted into varray unlike C arrays or std::array which must construct
3939
* all elements on instantiation. The behavior of varray enables the use of statically allocated
40-
* elements in cases with complex object lifetime requirements that would otherwise not be trivially
40+
* elements in cases with complex object lifetime requirements that would otherwise not be trivially
4141
* possible.
4242
*
4343
* @par Error Handling

build/Jamfile.v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# (C) Copyright Vladimir Prus, David Abrahams, Michael Stevens, Hartmut Kaiser,
1+
# (C) Copyright Vladimir Prus, David Abrahams, Michael Stevens, Hartmut Kaiser,
22
# Ion Gaztanaga 2007-2008
33
# Use, modification and distribution are subject to the
44
# Boost Software License, Version 1.0. (See accompanying file

doc/Jamfile.v2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ boostbook standalone
6161
<format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
6262

6363
# Build requirements go here:
64-
64+
6565
# <auto-index>on (or off) one turns on (or off) indexing:
6666
<auto-index>on
67-
67+
6868
# Turns on (or off) auto-index-verbose for diagnostic info.
6969
# This is highly recommended until you have got all the many details correct!
7070
<auto-index-verbose>on
71-
71+
7272
# Choose the indexing method (separately for html and PDF) - see manual.
7373
# Choose indexing method for PDFs:
7474
<format>pdf:<auto-index-internal>off
75-
75+
7676
# Choose indexing method for html:
7777
<format>html:<auto-index-internal>on
7878
<format>docbook:<auto-index-internal>on
79-
79+
8080
# Set the name of the script file to use (index.idx is popular):
8181
<auto-index-script>$(here)/index.idx
8282
# Commands in the script file should all use RELATIVE PATHS

0 commit comments

Comments
 (0)