VectorPro
High-performance, header-only dynamic array with configurable growth policy, custom allocator support, and optional modification-event notifications.
Loading...
Searching...
No Matches
VectorPro Namespace Reference

Namespaces

namespace  detail
 

Classes

class  Iterator
 A raw-pointer-backed contiguous random-access iterator. More...
 
class  Vector
 A dynamically resizable contiguous array. More...
 

Concepts

concept  Listener
 Constrains listener callbacks usable with Vector:subscribe().
 

Typedefs

template<typename T , typename Allocator = std::allocator<T>, std::size_t GrowthNum = 2, std::size_t GrowthDen = 1>
using ObservableVector = Vector< T, Allocator, GrowthNum, GrowthDen, true >
 Convenience alias for a Vector with event notifications enabled.
 

Functions

template<typename T , typename Allocator , std::size_t GrowthNum, std::size_t GrowthDen, bool EnableEvents>
void swap (Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents > &a, Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents > &b) noexcept
 Exchanges the contents of two vectors.
 

Typedef Documentation

◆ ObservableVector

template<typename T , typename Allocator = std::allocator<T>, std::size_t GrowthNum = 2, std::size_t GrowthDen = 1>
using VectorPro::ObservableVector = typedef Vector<T, Allocator, GrowthNum, GrowthDen, true>

Convenience alias for a Vector with event notifications enabled.

Equivalent to Vector<T, Allocator, GrowthNum, GrowthDen, true>. Use this wherever code needs subscribe()/unsubscribe(); a plain Vector<T> has events disabled and won't compile against those calls.

Function Documentation

◆ swap()

template<typename T , typename Allocator , std::size_t GrowthNum, std::size_t GrowthDen, bool EnableEvents>
void VectorPro::swap ( Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents > &  a,
Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents > &  b 
)
noexcept

Exchanges the contents of two vectors.

Parameters
aFirst vector.
bSecond vector.