forked from boostorg/container
Removed tabs.
This commit is contained in:
1 parent
85821789f7
commit
d849f80ea5
53 files changed
+6190
-6192
No files matched your search
@@ -447,7 +447,7 @@ class flat_tree
|
||||
#if !defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
|
||||
, typename container_detail::enable_if_c
|
||||
< !container_detail::is_input_iterator<FwdIt>::value &&
|
||||
container_detail::is_forward_iterator<FwdIt>::value
|
||||
container_detail::is_forward_iterator<FwdIt>::value
|
||||
>::type * = 0
|
||||
#endif
|
||||
)
|
||||
@@ -559,7 +559,7 @@ class flat_tree
|
||||
const typename std::iterator_traits<BidirIt>::value_type & val = *first;
|
||||
pos = const_cast<const flat_tree&>(*this).priv_lower_bound(pos, ce, KeyOfValue()(val));
|
||||
//Check if already present
|
||||
if (pos != ce){
|
||||
if (pos != ce){
|
||||
++first;
|
||||
--len;
|
||||
if(!val_cmp(val, *pos)){
|
||||
|
||||
@@ -128,8 +128,8 @@ struct if_
|
||||
template <class Pair>
|
||||
struct select1st
|
||||
{
|
||||
typedef Pair argument_type;
|
||||
typedef typename Pair::first_type result_type;
|
||||
typedef Pair argument_type;
|
||||
typedef typename Pair::first_type result_type;
|
||||
|
||||
template<class OtherPair>
|
||||
const typename Pair::first_type& operator()(const OtherPair& x) const
|
||||
@@ -143,8 +143,8 @@ struct select1st
|
||||
template <class T>
|
||||
struct identity
|
||||
{
|
||||
typedef T argument_type;
|
||||
typedef T result_type;
|
||||
typedef T argument_type;
|
||||
typedef T result_type;
|
||||
|
||||
typedef T type;
|
||||
const T& operator()(const T& x) const
|
||||
|
||||
@@ -25,10 +25,6 @@
|
||||
#include <boost/container/detail/config_begin.hpp>
|
||||
#include <boost/container/detail/workaround.hpp>
|
||||
|
||||
#ifdef _AIX
|
||||
#include <sched.h>
|
||||
#endif
|
||||
|
||||
// Extremely Light-Weight wrapper classes for OS thread synchronization
|
||||
|
||||
#define BOOST_MUTEX_HELPER_NONE 0
|
||||
@@ -138,8 +134,10 @@
|
||||
#define SLEEP_EX_DURATION 50 /* delay for yield/sleep */
|
||||
#define SPIN_LOCK_YIELD SleepEx(SLEEP_EX_DURATION, FALSE)
|
||||
#elif defined (__SVR4) && defined (__sun) /* solaris */
|
||||
#include <thread.h>
|
||||
#define SPIN_LOCK_YIELD thr_yield();
|
||||
#elif !defined(LACKS_SCHED_H)
|
||||
#include <sched.h>
|
||||
#define SPIN_LOCK_YIELD sched_yield();
|
||||
#else
|
||||
#define SPIN_LOCK_YIELD
|
||||
|
||||
@@ -251,8 +251,8 @@ class private_node_pool_impl
|
||||
|
||||
struct is_between
|
||||
{
|
||||
typedef typename free_nodes_t::value_type argument_type;
|
||||
typedef bool result_type;
|
||||
typedef typename free_nodes_t::value_type argument_type;
|
||||
typedef bool result_type;
|
||||
|
||||
is_between(const void *addr, std::size_t size)
|
||||
: beg_(static_cast<const char *>(addr)), end_(beg_+size)
|
||||
|
||||
@@ -103,8 +103,8 @@ template <typename T>
|
||||
inline T* addressof(T& obj)
|
||||
{
|
||||
return static_cast<T*>(
|
||||
static_cast<void*>(
|
||||
const_cast<char*>(
|
||||
static_cast<void*>(
|
||||
const_cast<char*>(
|
||||
&reinterpret_cast<const char&>(obj)
|
||||
)));
|
||||
}
|
||||
@@ -451,10 +451,10 @@ inline typename container_detail::disable_if_memtransfer_copy_constructible<I, F
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return r;
|
||||
@@ -496,10 +496,10 @@ inline typename container_detail::disable_if_memtransfer_copy_constructible<I, F
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return r;
|
||||
@@ -541,10 +541,10 @@ inline typename container_detail::disable_if_memtransfer_copy_constructible<I, F
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return f;
|
||||
@@ -586,10 +586,10 @@ inline typename container_detail::disable_if_memtransfer_copy_constructible<I, F
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return r;
|
||||
@@ -631,10 +631,10 @@ inline typename container_detail::disable_if_memtransfer_copy_constructible<I, F
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return r;
|
||||
@@ -676,10 +676,10 @@ inline typename container_detail::disable_if_memtransfer_copy_constructible<I, F
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return f;
|
||||
@@ -720,10 +720,10 @@ inline typename container_detail::disable_if_memzero_initializable<F, F>::type
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return r;
|
||||
@@ -767,10 +767,10 @@ inline F uninitialized_default_init_alloc_n(A &a, typename allocator_traits<A>::
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return r;
|
||||
@@ -803,10 +803,10 @@ inline void uninitialized_fill_alloc(A &a, F f, F l, const T &t)
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != l; ++back){
|
||||
for (; back != l; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
}
|
||||
@@ -839,10 +839,10 @@ inline F uninitialized_fill_alloc_n(A &a, const T &v, typename allocator_traits<
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
for (; back != r; ++back){
|
||||
for (; back != r; ++back){
|
||||
allocator_traits<A>::destroy(a, container_detail::iterator_to_raw_pointer(back));
|
||||
}
|
||||
BOOST_RETHROW;
|
||||
BOOST_RETHROW;
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
return r;
|
||||
|
||||
Reference in new issue
Block a user