Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljames committed Dec 28, 2017
1 parent 32773fb commit 9d558b0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
22 changes: 10 additions & 12 deletions include/boost/unordered/detail/implementation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2097,8 +2097,7 @@ namespace boost {
//
// all no throw

template <typename Node>
struct l_iterator
template <typename Node> struct l_iterator
{
#if !defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS)
template <typename Node2>
Expand Down Expand Up @@ -2157,8 +2156,7 @@ namespace boost {
}
};

template <typename Node>
struct cl_iterator
template <typename Node> struct cl_iterator
{
friend struct boost::unordered::iterator_detail::l_iterator<Node>;

Expand Down Expand Up @@ -2224,8 +2222,7 @@ namespace boost {
}
};

template <typename Node>
struct iterator
template <typename Node> struct iterator
{
#if !defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS)
template <typename>
Expand Down Expand Up @@ -2279,8 +2276,7 @@ namespace boost {
}
};

template <typename Node>
struct c_iterator
template <typename Node> struct c_iterator
{
friend struct boost::unordered::iterator_detail::iterator<Node>;

Expand Down Expand Up @@ -3251,8 +3247,8 @@ namespace boost {
void delete_buckets()
{
if (buckets_) {
node_pointer n =
static_cast<node_pointer>(get_bucket_pointer(bucket_count_)->next_);
node_pointer n = static_cast<node_pointer>(
get_bucket_pointer(bucket_count_)->next_);

if (bucket::extra_node) {
node_pointer next = next_node(n);
Expand Down Expand Up @@ -3569,7 +3565,8 @@ namespace boost {
link_pointer start_node = this->get_previous_start();

if (start_node->next_) {
this->get_bucket_pointer(node_bucket(next_node(start_node)))->next_ = n;
this->get_bucket_pointer(node_bucket(next_node(start_node)))
->next_ = n;
}

b->next_ = start_node;
Expand Down Expand Up @@ -4092,7 +4089,8 @@ namespace boost {
link_pointer start_node = this->get_previous_start();

if (start_node->next_) {
this->get_bucket_pointer(this->node_bucket(next_node(start_node)))
this
->get_bucket_pointer(this->node_bucket(next_node(start_node)))
->next_ = n;
}

Expand Down
6 changes: 2 additions & 4 deletions test/helpers/input_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ namespace test {
proxy& operator=(proxy const&);
};

template <class Iterator>
struct input_iterator_adaptor
template <class Iterator> struct input_iterator_adaptor
{
typedef BOOST_DEDUCED_TYPENAME std::iterator_traits<Iterator>::value_type
value_type;
Expand Down Expand Up @@ -65,8 +64,7 @@ namespace test {
return input_iterator_adaptor<Iterator>(it);
}

template <class Iterator>
struct copy_iterator_adaptor
template <class Iterator> struct copy_iterator_adaptor
{
typedef BOOST_DEDUCED_TYPENAME std::iterator_traits<Iterator>::value_type
value_type;
Expand Down
6 changes: 2 additions & 4 deletions test/helpers/list.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ namespace test {
list_data& operator=(list_data const&);
};

template <typename T>
class list_iterator
template <typename T> class list_iterator
{
friend class list_const_iterator<T>;
friend class test::list<T>;
Expand Down Expand Up @@ -118,8 +117,7 @@ namespace test {
bool operator!=(const_iterator y) const { return ptr_ != y.ptr_; }
};

template <typename T>
class list_const_iterator
template <typename T> class list_const_iterator
{
friend class list_iterator<T>;
friend class test::list<T>;
Expand Down

0 comments on commit 9d558b0

Please sign in to comment.