template<typename T, size_t kInlineCapacity = containers::kExternalStorage, typename S = std::conditional_t< containers::internal::kPodType<T>, typename containers::internal::PodDeque<T>::size_type, typename Deque<T>::size_type>>
class pw::FixedDeque< T, kInlineCapacity, S >
FixedDeque is a Deque that owns its statically allocated buffer.
This FixedDeque statically allocates its storage buffer internally. Similar to InlineDeque, the capacity is specified as a template parameter. Unlike InlineDeque, FixedDeque is usable as a generic Deque.
If the capacity is omitted (or set to containers::kExternalStorage), the external storage specialization is used. Whether statically or dynamically allocated, the capacity never changes.
- Template Parameters
-
| T | What is stored in the deque. |
| S | Size type. A smaller size type limits the maximum number of items, but requires slightly less memory. |