template<typename T>
tf::CachelineAligned struct

struct to ensure cacheline-aligned storage for an object.

Template parameters
T The type of the stored object.

This utility struct aligns the stored object data to twice the size of a cacheline. The alignment improves performance by optimizing data access in cache-sensitive scenarios.

Public functions

auto get() -> T&
Provides access to the stored object.

Public variables

T data
The stored object, aligned to twice the cacheline size.

Function documentation

template<typename T>
T& tf::CachelineAligned<T>::get()

Provides access to the stored object.

Returns A reference to the stored object.