Queue  1.0.0
A C++17 Library of various `queue` containers
concurrent_queue.h File Reference

A thread-safe queue (FIFO) implementation. More...

#include <chrono>
#include <condition_variable>
#include <deque>
#include <memory>
#include <mutex>
#include <shared_mutex>

Go to the source code of this file.

Classes

class  concurrent_queue< T, Queue, Alloc >
 The concurrent_queue class is a sequence container class that allows first-in, first-out access to its elements. More...
 

Functions

template<class T , template< class, class > class Queue = std::deque, class Alloc = std::allocator<T>>
bool operator== (const concurrent_queue< T, Queue, Alloc > &lhs, const concurrent_queue< T, Queue, Alloc > &rhs)
 Equality Operator. More...
 
template<class T , template< class, class > class Queue = std::deque, class Alloc = std::allocator<T>>
bool operator!= (const concurrent_queue< T, Queue, Alloc > &lhs, const concurrent_queue< T, Queue, Alloc > &rhs)
 Inequality Operator. More...
 
template<class T , template< class, class > class Queue = std::deque, class Alloc = std::allocator<T>>
void std::swap (concurrent_queue< T, Queue, Alloc > &lhs, concurrent_queue< T, Queue, Alloc > &rhs)
 Swap Operator.
 

Detailed Description

A thread-safe queue (FIFO) implementation.

Function Documentation

◆ operator!=()

template<class T , template< class, class > class Queue = std::deque, class Alloc = std::allocator<T>>
bool operator!= ( const concurrent_queue< T, Queue, Alloc > &  lhs,
const concurrent_queue< T, Queue, Alloc > &  rhs 
)
inline

Inequality Operator.

Returns
true if the queues are not element-by-element equivalent

◆ operator==()

template<class T , template< class, class > class Queue = std::deque, class Alloc = std::allocator<T>>
bool operator== ( const concurrent_queue< T, Queue, Alloc > &  lhs,
const concurrent_queue< T, Queue, Alloc > &  rhs 
)
inline

Equality Operator.

Returns
true if the queues are element-by-element equivalent