C/C++ API Reference
Loading...
Searching...
No Matches
pw::containers::internal::GenericDequeBase< SizeType > Class Template Reference

Overview

template<typename SizeType>
class pw::containers::internal::GenericDequeBase< SizeType >

Base class for deques.

This type does not depend on the type of the elements being stored in the container.

Template Parameters
SizeTypeType for the size and capacity members. Determines the maximum capacity of the deque.
Inheritance diagram for pw::containers::internal::GenericDequeBase< SizeType >:
pw::containers::internal::GenericDeque< BasicInlineDequeImpl< ValueType, SizeType, kGenericSized >, ValueType, SizeType > pw::containers::internal::GenericDeque< Derived, ValueType, SizeType > pw::containers::internal::BasicInlineDequeImpl< ValueType, SizeType, kGenericSized >

Public Types

using size_type = SizeType
 

Public Member Functions

constexpr bool empty () const noexcept
 
constexpr bool full () const noexcept
 
constexpr size_type size () const noexcept
 Returns the number of elements in the deque.
 
constexpr size_type capacity () const noexcept
 Returns the maximum number of elements in the deque.
 

Protected Member Functions

constexpr void MoveAssignIndices (GenericDequeBase &other) noexcept
 
void SwapIndices (GenericDequeBase &other) noexcept
 
bool CanExtendBuffer () const
 
bool CanShrinkBuffer () const
 
void HandleNewBuffer (size_type new_capacity)
 
void HandleExtendedBuffer (size_type new_capacity)
 
void HandleShrunkBuffer (size_type new_capacity)
 

Friends

template<typename Derived , typename ValueType , typename S >
class GenericDeque
 

The documentation for this class was generated from the following file: