All member functions in this section can only be performed serially. The behavior is undefined in case of concurrent execution of these methods with other (either concurrently safe) methods.
size_type size() const;Returns: the number of elements in the container.
bool empty() const;Returns:
true
if the container is empty;false
, otherwise.
void clear();Removes all elements from the container.
void swap( concurrent_bounded_queue& other );Swaps contents of
*this
andother
.Swaps allocators if
std::allocator_traits<allocator_type>::propagate_on_container_swap::value
istrue
.Otherwise if
get_allocator() != other.get_allocator()
the behavior is undefined.