mirror of
https://github.com/boostorg/circular_buffer.git
synced 2026-02-03 09:02:12 +00:00
Compare commits
1 Commits
boost-1.54
...
boost-1.51
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ac4ddef09 |
@@ -2316,7 +2316,7 @@ private:
|
||||
}
|
||||
|
||||
//! Specialized method for swapping the allocator.
|
||||
void swap_allocator(circular_buffer<T, Alloc>&, const true_type&) {
|
||||
void swap_allocator(circular_buffer<T, Alloc>& cb, const true_type&) {
|
||||
// Swap is not needed because allocators have no state.
|
||||
}
|
||||
|
||||
|
||||
@@ -1300,7 +1300,7 @@ private:
|
||||
|
||||
//! Specialized method for determining the initial capacity.
|
||||
template <class IntegralType>
|
||||
static size_type init_capacity(const capacity_type& capacity_ctrl, IntegralType n, IntegralType,
|
||||
static size_type init_capacity(const capacity_type& capacity_ctrl, IntegralType n, IntegralType item,
|
||||
const true_type&) {
|
||||
return init_capacity(capacity_ctrl, static_cast<size_type>(n));
|
||||
}
|
||||
@@ -1320,7 +1320,7 @@ private:
|
||||
|
||||
//! Specialized method for determining the initial capacity.
|
||||
template <class InputIterator>
|
||||
static size_type init_capacity(const capacity_type& capacity_ctrl, InputIterator, InputIterator,
|
||||
static size_type init_capacity(const capacity_type& capacity_ctrl, InputIterator first, InputIterator last,
|
||||
const std::input_iterator_tag&) {
|
||||
return capacity_ctrl.capacity();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user