C/C++ API Reference
Loading...
Searching...
No Matches

Oveview

Submodules

 C API
 
 C++ API
 

Classes

class  pw::DynamicDeque< ValueType, SizeType >
 
class  pw::DynamicQueue< T, SizeType >
 
class  pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >
 
class  pw::BasicInlineAsyncQueue< ValueType, SizeType, containers::internal::kGenericSized >
 
class  pw::BasicInlineQueue< ValueType, SizeType, kCapacity >
 
class  pw::BasicInlineQueue< ValueType, SizeType, containers::internal::kGenericSized >
 
class  pw::containers::internal::GenericDequeBase< CountAndCapacityType >
 
class  pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >
 

Typedefs

using pw::DynamicDeque< ValueType, SizeType >::allocator_type = Allocator
 
using pw::DynamicQueue< T, SizeType >::const_iterator = typename Deque::const_iterator
 
using pw::DynamicQueue< T, SizeType >::const_pointer = typename Deque::const_pointer
 
using pw::DynamicQueue< T, SizeType >::const_reference = typename Deque::const_reference
 
using pw::DynamicQueue< T, SizeType >::difference_type = typename Deque::difference_type
 
using pw::DynamicQueue< T, SizeType >::iterator = typename Deque::iterator
 
using pw::DynamicQueue< T, SizeType >::pointer = typename Deque::pointer
 
using pw::DynamicQueue< T, SizeType >::reference = typename Deque::reference
 
using pw::DynamicQueue< T, SizeType >::size_type = typename Deque::size_type
 
using pw::DynamicQueue< T, SizeType >::value_type = typename Deque::value_type
 
template<typename ValueType , size_t kCapacity = containers::internal::kGenericSized>
using pw::InlineAsyncQueue = BasicInlineAsyncQueue< ValueType, uint16_t, kCapacity >
 
template<typename T , size_t kCapacity = containers::internal::kGenericSized>
using pw::InlineQueue = BasicInlineQueue< T, uint16_t, kCapacity >
 
using pw::containers::internal::GenericDequeBase< CountAndCapacityType >::size_type = typename CountAndCapacityType::size_type
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::value_type = ValueType
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::size_type = typename CountAndCapacityType::size_type
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::difference_type = ptrdiff_t
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::reference = value_type &
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::const_reference = const value_type &
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::pointer = value_type *
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::const_pointer = const value_type *
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::iterator = containers::internal::DequeIterator< Derived >
 
using pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::const_iterator = containers::internal::DequeIterator< const Derived >
 

Functions

constexpr pw::DynamicDeque< ValueType, SizeType >::DynamicDeque (Allocator &allocator) noexcept
 
 pw::DynamicDeque< ValueType, SizeType >::DynamicDeque (const DynamicDeque &)=delete
 
DynamicDequepw::DynamicDeque< ValueType, SizeType >::operator= (const DynamicDeque &)=delete
 
constexpr pw::DynamicDeque< ValueType, SizeType >::DynamicDeque (DynamicDeque &&other) noexcept
 
DynamicDequepw::DynamicDeque< ValueType, SizeType >::operator= (DynamicDeque &&other) noexcept
 
template<typename InputIt , typename = containers::internal::EnableIfInputIterator<InputIt>>
iterator pw::DynamicDeque< ValueType, SizeType >::insert (const_iterator pos, InputIt first, InputIt last)
 
iterator pw::DynamicDeque< ValueType, SizeType >::insert (const_iterator pos, const value_type &value)
 
iterator pw::DynamicDeque< ValueType, SizeType >::insert (const_iterator pos, value_type &&value)
 
iterator pw::DynamicDeque< ValueType, SizeType >::insert (const_iterator pos, size_type count, const value_type &value)
 
iterator pw::DynamicDeque< ValueType, SizeType >::insert (const_iterator pos, std::initializer_list< value_type > ilist)
 
bool pw::DynamicDeque< ValueType, SizeType >::try_reserve (size_type new_capacity)
 
void pw::DynamicDeque< ValueType, SizeType >::reserve (size_type new_capacity)
 Increases capacity() to at least new_capacity. Crashes on failure.
 
bool pw::DynamicDeque< ValueType, SizeType >::try_reserve_exact (size_type new_capacity)
 
void pw::DynamicDeque< ValueType, SizeType >::reserve_exact (size_type new_capacity)
 Increases capacity() to exactly new_capacity. Crashes on failure.
 
void pw::DynamicDeque< ValueType, SizeType >::shrink_to_fit ()
 Attempts to reduce capacity() to size(). Not guaranteed to succeed.
 
constexpr size_type pw::DynamicDeque< ValueType, SizeType >::max_size () const noexcept
 
constexpr allocator_typepw::DynamicDeque< ValueType, SizeType >::get_allocator () const
 Returns the deque's allocator.
 
void pw::DynamicDeque< ValueType, SizeType >::swap (DynamicDeque &other) noexcept
 Swaps the contents of two deques. No allocations occur.
 
constexpr pw::DynamicQueue< T, SizeType >::DynamicQueue (pw::Allocator &allocator)
 Constructs a DynamicQueue using the provided allocator.
 
 pw::DynamicQueue< T, SizeType >::DynamicQueue (const DynamicQueue &)=delete
 
DynamicQueuepw::DynamicQueue< T, SizeType >::operator= (const DynamicQueue &)=delete
 
constexpr pw::DynamicQueue< T, SizeType >::DynamicQueue (DynamicQueue &&)=default
 Move operations are supported and incur no allocations.
 
DynamicQueuepw::DynamicQueue< T, SizeType >::operator= (DynamicQueue &&)=default
 
void pw::DynamicQueue< T, SizeType >::clear ()
 Removes all elements from the queue.
 
bool pw::DynamicQueue< T, SizeType >::try_push (const value_type &value)
 Attempts to add an element to the back of the queue.
 
bool pw::DynamicQueue< T, SizeType >::try_push (value_type &&value)
 Attempts to add an element to the back of the queue (move version).
 
template<typename... Args>
bool pw::DynamicQueue< T, SizeType >::try_emplace (Args &&... args)
 Attempts to construct an element in place at the back of the queue.
 
void pw::DynamicQueue< T, SizeType >::reserve (size_type capacity)
 Sets the queue capacity to at least max(capacity, size()) elements.
 
bool pw::DynamicQueue< T, SizeType >::try_reserve (size_type capacity)
 
void pw::DynamicQueue< T, SizeType >::reserve_exact (size_type capacity)
 Sets the queue capacity to max(capacity, size()) elements.
 
bool pw::DynamicQueue< T, SizeType >::try_reserve_exact (size_type capacity)
 Attempts to set the queue capacity to max(capacity, size()) elements.
 
void pw::DynamicQueue< T, SizeType >::shrink_to_fit ()
 Reduces memory usage by releasing unused capacity, if possible.
 
void pw::DynamicQueue< T, SizeType >::swap (DynamicQueue &other)
 Swaps the contents with another queue.
 
 pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue (size_type count, const_reference value)
 
 pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue (size_type count)
 
template<typename InputIterator , typename = containers::internal::EnableIfInputIterator<InputIterator>>
 pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue (InputIterator start, InputIterator finish)
 
 pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue (const std::initializer_list< value_type > &list)
 
 pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue (const BasicInlineAsyncQueue &other)
 Copy constructs for matching capacity.
 
template<size_t kOtherCapacity>
 pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue (const BasicInlineAsyncQueue< ValueType, SizeType, kOtherCapacity > &other)
 
 pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue (BasicInlineAsyncQueue &&other)
 Move constructs for matching capacity.
 
template<size_t kOtherCapacity>
 pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue (BasicInlineAsyncQueue< ValueType, SizeType, kOtherCapacity > &&other)
 
BasicInlineAsyncQueuepw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::operator= (const std::initializer_list< value_type > &list)
 
BasicInlineAsyncQueuepw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::operator= (const BasicInlineAsyncQueue &other)
 Copy assigns from matching capacity.
 
template<size_t kOtherCapacity>
BasicInlineAsyncQueuepw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::operator= (const BasicInlineAsyncQueue< ValueType, SizeType, kOtherCapacity > &other)
 
BasicInlineAsyncQueuepw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::operator= (BasicInlineAsyncQueue &&other)
 Move assigns from matching capacity.
 
template<size_t kOtherCapacity>
BasicInlineAsyncQueuepw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::operator= (BasicInlineAsyncQueue< ValueType, SizeType, kOtherCapacity > &&other)
 
template<typename OtherValueType , typename = containers::internal::EnableIfIterable<OtherValueType>>
BasicInlineAsyncQueuepw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::operator= (const OtherValueType &other)
 
static constexpr size_type pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::max_size ()
 
static constexpr size_type pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::capacity ()
 
async2::Poll pw::BasicInlineAsyncQueue< ValueType, SizeType, containers::internal::kGenericSized >::PendHasSpace (async2::Context &context, size_type num=1)
 Returns Pending until space for num elements is available.
 
async2::Poll pw::BasicInlineAsyncQueue< ValueType, SizeType, containers::internal::kGenericSized >::PendNotEmpty (async2::Context &context)
 Returns Pending until an element is available.
 
constexpr bool pw::containers::internal::GenericDequeBase< CountAndCapacityType >::empty () const noexcept
 
constexpr size_type pw::containers::internal::GenericDequeBase< CountAndCapacityType >::size () const noexcept
 Returns the number of elements in the deque.
 
constexpr size_type pw::containers::internal::GenericDequeBase< CountAndCapacityType >::capacity () const noexcept
 Returns the maximum number of elements in the deque.
 
CountAndCapacityType & pw::containers::internal::GenericDequeBase< CountAndCapacityType >::count_and_capacity () noexcept
 
constexpr void pw::containers::internal::GenericDequeBase< CountAndCapacityType >::MoveAssignIndices (GenericDequeBase &other) noexcept
 
void pw::containers::internal::GenericDequeBase< CountAndCapacityType >::SwapIndices (GenericDequeBase &other) noexcept
 
bool pw::containers::internal::GenericDequeBase< CountAndCapacityType >::CanExtendBuffer () const
 
bool pw::containers::internal::GenericDequeBase< CountAndCapacityType >::CanShrinkBuffer () const
 
void pw::containers::internal::GenericDequeBase< CountAndCapacityType >::HandleNewBuffer (size_type new_capacity)
 
void pw::containers::internal::GenericDequeBase< CountAndCapacityType >::HandleExtendedBuffer (size_type new_capacity)
 
void pw::containers::internal::GenericDequeBase< CountAndCapacityType >::HandleShrunkBuffer (size_type new_capacity)
 
 pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::GenericDeque (const GenericDeque &)=delete
 
 pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::GenericDeque (GenericDeque &&)=delete
 
GenericDequepw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::operator= (const GenericDeque &)=delete
 
GenericDeque && pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::operator= (GenericDeque &&)=delete
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::assign (size_type count, const value_type &value)
 Sets the contents to count copies of value. Crashes if cannot fit.
 
template<typename It , int & ..., typename = containers::internal::EnableIfInputIterator<It>>
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::assign (It start, It finish)
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::assign (const std::initializer_list< value_type > &list)
 Sets contents to copies of the items from the list. Crashes if cannot fit.
 
constexpr reference pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::at (size_type index)
 
constexpr const_reference pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::at (size_type index) const
 
constexpr reference pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::operator[] (size_type index)
 
constexpr const_reference pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::operator[] (size_type index) const
 
constexpr reference pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::front ()
 
constexpr const_reference pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::front () const
 
constexpr reference pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::back ()
 
constexpr const_reference pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::back () const
 
constexpr std::pair< span< const value_type >, span< const value_type > > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::contiguous_data () const
 Provides access to the valid data in a contiguous form.
 
constexpr std::pair< span< value_type >, span< value_type > > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::contiguous_data ()
 
constexpr iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::begin () noexcept
 
constexpr const_iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::begin () const noexcept
 
constexpr const_iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::cbegin () const noexcept
 
constexpr iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::end () noexcept
 
constexpr const_iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::end () const noexcept
 
constexpr const_iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::cend () const noexcept
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::clear ()
 
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::erase (const_iterator pos)
 Erases the item at pos, which must be a dereferenceable iterator.
 
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::erase (const_iterator first, const_iterator last)
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::push_back (const value_type &value)
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::push_back (value_type &&value)
 
template<typename... Args>
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::emplace_back (Args &&... args)
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::pop_back ()
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::push_front (const value_type &value)
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::push_front (value_type &&value)
 
template<typename... Args>
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::emplace_front (Args &&... args)
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::pop_front ()
 
template<typename... Args>
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::emplace (const_iterator pos, Args &&... args)
 
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert (const_iterator pos, const value_type &value)
 
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert (const_iterator pos, value_type &&value)
 
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert (const_iterator pos, size_type count, const value_type &value)
 
template<typename InputIt , typename = containers::internal::EnableIfInputIterator<InputIt>>
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert (const_iterator pos, InputIt first, InputIt last)
 
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert (const_iterator pos, std::initializer_list< value_type > ilist)
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::resize (size_type new_size)
 
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::resize (size_type new_size, const value_type &value)
 
constexpr pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::GenericDeque (size_type initial_capacity) noexcept
 
Derived & pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::operator= (const std::initializer_list< value_type > &list)
 
template<typename T , typename = containers::internal::EnableIfIterable<T>>
Derived & pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::operator= (const T &other)
 
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_assign (size_type count, const value_type &value)
 
template<typename It , int & ..., typename = containers::internal::EnableIfForwardIterator<It>>
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_assign (It start, It finish)
 
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_assign (const std::initializer_list< value_type > &list)
 
template<typename... Args>
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_emplace (const_iterator pos, Args &&... args)
 
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert (const_iterator pos, const value_type &value)
 
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert (const_iterator pos, value_type &&value)
 
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert (const_iterator pos, size_type count, const value_type &value)
 
template<typename ForwardIt , typename = containers::internal::EnableIfForwardIterator<ForwardIt>>
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert (const_iterator pos, ForwardIt first, ForwardIt last)
 
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert (const_iterator pos, std::initializer_list< value_type > ilist)
 
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_push_back (const value_type &value)
 
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_push_back (value_type &&value)
 
template<typename... Args>
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_emplace_back (Args &&... args)
 
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_push_front (const value_type &value)
 
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_push_front (value_type &&value)
 
template<typename... Args>
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_emplace_front (Args &&... args)
 
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_resize (size_type new_size)
 
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_resize (size_type new_size, const value_type &value)
 
template<typename... Args>
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_emplace_shift_right (const_iterator pos, Args &&... args)
 
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert_shift_right (const_iterator pos, size_type count, const value_type &value)
 
template<typename ForwardIt , typename = containers::internal::EnableIfForwardIterator<ForwardIt>>
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert_shift_right (const_iterator pos, ForwardIt first, ForwardIt last)
 

Friends

template<typename , typename >
class pw::DynamicDeque< ValueType, SizeType >::DynamicVector
 
template<typename , typename >
class pw::DynamicQueue< T, SizeType >::containers::internal::GenericQueue
 
class pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue< ValueType, SizeType, containers::internal::kGenericSized >
 
template<typename , typename >
class pw::BasicInlineAsyncQueue< ValueType, SizeType, containers::internal::kGenericSized >::containers::internal::GenericQueue
 
template<typename Derived , typename ValueType , typename S >
class pw::containers::internal::GenericDequeBase< CountAndCapacityType >::GenericDeque
 

Typedef Documentation

◆ InlineAsyncQueue

template<typename ValueType , size_t kCapacity = containers::internal::kGenericSized>
using pw::InlineAsyncQueue = typedef BasicInlineAsyncQueue<ValueType, uint16_t, kCapacity>

Async wrapper around BasicInlineQueue.

This class mimics the structure of BasicInlineQueue to allow referring to an InlineAsyncQueue without an explicit maximum size.

◆ InlineQueue

template<typename T , size_t kCapacity = containers::internal::kGenericSized>
using pw::InlineQueue = typedef BasicInlineQueue<T, uint16_t, kCapacity>

The InlineQueue class is similar to std::queue<T, std::deque>, except it is backed by a fixed-size buffer. InlineQueue's must be declared with an explicit maximum size (e.g. InlineQueue<int, 10>>) but deques can be used and referred to without the max size template parameter (e.g. InlineQueue<int>).

pw::InlineQueue is wrapper around pw::InlineDeque with a simplified API and push_overwrite() & emplace_overwrite() helpers.

Function Documentation

◆ assign()

template<typename Derived , typename ValueType , typename CountAndCapacityType >
template<typename It , int & ..., typename >
void pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::assign ( It  start,
It  finish 
)

Sets the contents to copies of the items from the iterator. Crashes if cannot fit.

◆ BasicInlineAsyncQueue() [1/2]

template<typename ValueType , typename SizeType , size_t kCapacity = containers::internal::kGenericSized>
template<size_t kOtherCapacity>
pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue ( BasicInlineAsyncQueue< ValueType, SizeType, kOtherCapacity > &&  other)
inline

Move constructs for mismatched capacity.

Note that this will result in a crash if kOtherCapacity < size().

◆ BasicInlineAsyncQueue() [2/2]

template<typename ValueType , typename SizeType , size_t kCapacity = containers::internal::kGenericSized>
template<size_t kOtherCapacity>
pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::BasicInlineAsyncQueue ( const BasicInlineAsyncQueue< ValueType, SizeType, kOtherCapacity > &  other)
inline

Copy constructs for mismatched capacity.

Note that this will result in a crash if kOtherCapacity < size().

◆ DynamicDeque() [1/2]

template<typename ValueType , typename SizeType = uint16_t>
constexpr pw::DynamicDeque< ValueType, SizeType >::DynamicDeque ( Allocator allocator)
inlineconstexprnoexcept

Constructs an empty DynamicDeque. No memory is allocated.

Since allocations can fail, initialization in the constructor is not supported.

◆ DynamicDeque() [2/2]

template<typename ValueType , typename SizeType = uint16_t>
constexpr pw::DynamicDeque< ValueType, SizeType >::DynamicDeque ( DynamicDeque< ValueType, SizeType > &&  other)
inlineconstexprnoexcept

Move construction/assignment is supported since it cannot fail. Copy construction/assignment is not supported. Can use assign()/try_assign() instead.

◆ emplace()

template<typename Derived , typename ValueType , typename CountAndCapacityType >
template<typename... Args>
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::emplace ( const_iterator  pos,
Args &&...  args 
)
inline

Constructs an item in place at pos. Crashes if memory allocation fails.

Returns
an iterator to the emplaced item.

◆ erase()

template<typename Derived , typename ValueType , typename CountAndCapacityType >
GenericDeque< Derived, ValueType, CountAndCapacityType >::iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::erase ( const_iterator  first,
const_iterator  last 
)

Erases the items in the range [first, last). Does nothing if first == last.

◆ insert() [1/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert ( const_iterator  pos,
const value_type &  value 
)
inline

Inserts a copy of an item at pos. Crashes if memory allocation fails.

Returns
an iterator to the inserted item.

◆ insert() [2/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
template<typename InputIt , typename >
GenericDeque< Derived, ValueType, CountAndCapacityType >::iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert ( const_iterator  pos,
InputIt  first,
InputIt  last 
)

Inserts the contents of an iterator at pos. Crashes if memory allocation fails.

Returns
an iterator to the first inserted item.

◆ insert() [3/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert ( const_iterator  pos,
size_type  count,
const value_type &  value 
)
inline

Inserts count copies of value at pos. Crashes if memory allocation fails.

Returns
an iterator to the first inserted item.

◆ insert() [4/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert ( const_iterator  pos,
std::initializer_list< value_type >  ilist 
)
inline

Inserts an initializer list at pos. Crashes if memory allocation fails.

Returns
an iterator to the first inserted item.

◆ insert() [5/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
iterator pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::insert ( const_iterator  pos,
value_type &&  value 
)
inline

Inserts an item at pos using move semanatics. Crashes if memory allocation fails.

Returns
an iterator to the inserted item.

◆ operator=() [1/2]

template<typename ValueType , typename SizeType , size_t kCapacity = containers::internal::kGenericSized>
template<size_t kOtherCapacity>
BasicInlineAsyncQueue & pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::operator= ( BasicInlineAsyncQueue< ValueType, SizeType, kOtherCapacity > &&  other)
inline

Move assigns from mismatched capacity.

Note that this will result in a crash if kOtherCapacity < size().

◆ operator=() [2/2]

template<typename ValueType , typename SizeType , size_t kCapacity = containers::internal::kGenericSized>
template<size_t kOtherCapacity>
BasicInlineAsyncQueue & pw::BasicInlineAsyncQueue< ValueType, SizeType, kCapacity >::operator= ( const BasicInlineAsyncQueue< ValueType, SizeType, kOtherCapacity > &  other)
inline

Copy assigns from mismatched capacity.

Note that this will result in a crash if other.size() > capacity().

◆ try_assign() [1/3]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_assign ( const std::initializer_list< value_type > &  list)
inlineprotected

Replaces the container with copies of items from an initializer list. Does nothing if unable to accommodate all items.

◆ try_assign() [2/3]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
template<typename It , int & ..., typename >
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_assign ( It  start,
It  finish 
)
protected

Replaces the container with copies of items from an iterator. Does nothing if unable to accommodate all items.

try_assign() requires a forward iterator so that the capacity can be checked upfront to avoid partial assignments. Input iterators are only suitable for one pass, so could be exhausted by a std::distance check.

◆ try_assign() [3/3]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
bool pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_assign ( size_type  count,
const value_type &  value 
)
protected

Attempts to replace the contents with count copies of value. If count <blockquote>&zwj;capacity() and allocation is supported, attempts to allocate to

increase capacity. Does nothing if unable to accommodate count items.

◆ try_emplace()

template<typename Derived , typename ValueType , typename CountAndCapacityType >
template<typename... Args>
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_emplace ( const_iterator  pos,
Args &&...  args 
)
protected

Tries to construct an item in place at pos.

Returns
an std::optional iterator to the emplaced item. If memory allocation fails, returns std::nullopt and the container is left unchanged.

◆ try_insert() [1/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert ( const_iterator  pos,
const value_type &  value 
)
inlineprotected

Tries to insert a copy of an item at pos.

Returns
an std::optional iterator to the inserted item. If memory allocation fails, returns std::nullopt and the container is left unchanged.

◆ try_insert() [2/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
template<typename ForwardIt , typename = containers::internal::EnableIfForwardIterator<ForwardIt>>
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert ( const_iterator  pos,
ForwardIt  first,
ForwardIt  last 
)
protected

Tries to insert the contents of an iterator at pos.

Returns
an std::optional iterator to the first inserted item. If memory allocation fails, returns std::nullopt and the container is left unchanged.

◆ try_insert() [3/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
std::optional< typename GenericDeque< Derived, ValueType, CountAndCapacityType >::iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert ( const_iterator  pos,
size_type  count,
const value_type &  value 
)
protected

Tries to insert count copies of value at pos.

Returns
an std::optional iterator to the first inserted item. If memory allocation fails, returns std::nullopt and the container is left unchanged.

◆ try_insert() [4/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert ( const_iterator  pos,
std::initializer_list< value_type >  ilist 
)
inlineprotected

Tries to insert an initializer list at pos.

Returns
an std::optional iterator to the first inserted item. If memory allocation fails, returns std::nullopt and the container is left unchanged.

◆ try_insert() [5/5]

template<typename Derived , typename ValueType , typename CountAndCapacityType >
std::optional< iterator > pw::containers::internal::GenericDeque< Derived, ValueType, CountAndCapacityType >::try_insert ( const_iterator  pos,
value_type &&  value 
)
inlineprotected

Tries to insert an item at pos using move semanatics.

Returns
an std::optional iterator to the inserted item. If memory allocation fails, returns std::nullopt and the container is left unchanged.

◆ try_reserve() [1/2]

template<typename T , typename SizeType = uint16_t>
bool pw::DynamicQueue< T, SizeType >::try_reserve ( size_type  capacity)
inline

Attempts to set the queue capacity to at least max(capacity, size()) elements.

◆ try_reserve() [2/2]

template<typename ValueType , typename SizeType >
bool pw::DynamicDeque< ValueType, SizeType >::try_reserve ( size_type  new_capacity)

Attempts to increase capacity() to at least new_capacity, allocating memory if needed. Does nothing if new_capacity is less than or equal to capacity(). Iterators are invalidated if allocation occurs.

try_reserve may increase the capacity to be larger than new_capacity, with the same behavior as if the size were increased to new_capacity. To increase the capacity to a precise value, use try_reserve_exact().

Returns
true if allocation succeeded or capacity() was already large enough; false if allocation failed

◆ try_reserve_exact()

template<typename ValueType , typename SizeType = uint16_t>
bool pw::DynamicDeque< ValueType, SizeType >::try_reserve_exact ( size_type  new_capacity)
inline

Attempts to increase capacity() to new_capacity, allocating memory if needed. Does nothing if new_capacity is less than or equal to capacity().

This differs from try_reserve(), which may reserve space for more than new_capacity.

Returns
true if allocation succeeded or capacity() was already large enough; false if allocation failed