CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
BucketArray< T, trivial > Struct Template Reference

Helper methods for copying and shifting partially uninitialized arrays. More...

#include <BucketArray>

Static Public Member Functions

template<unsigned distance = 1>
static void shiftUp (T *items, unsigned count)
 Shift initialized items up and down within the otherwise uninitialized array.
 
template<unsigned count>
static void transfer (T *to, T *from)
 Copy items from one array to an uninitialized part of another array.
 

Detailed Description

template<class T, bool trivial = std::is_trivially_copyable_v<T>>
struct cc::BucketArray< T, trivial >

Helper methods for copying and shifting partially uninitialized arrays.

Member Function Documentation

◆ shiftUp()

template<class T , bool trivial = std::is_trivially_copyable_v<T>>
template<unsigned distance = 1>
static void shiftUp ( T * items,
unsigned count )
static

Shift initialized items up and down within the otherwise uninitialized array.

◆ transfer()

template<class T , bool trivial = std::is_trivially_copyable_v<T>>
template<unsigned count>
static void transfer ( T * to,
T * from )
static

Copy items from one array to an uninitialized part of another array.