vecs
Fast, flexible ecs in C++ with ergonomic API
Loading...
Searching...
No Matches
vecs::Local< T > Struct Template Reference

A container for local data specific to a system. More...

#include <vecs.h>

Public Member Functions

T & operator* ()
 Dereferences the local data, providing access to the stored value.
 

Detailed Description

template<typename T>
struct vecs::Local< T >

A container for local data specific to a system.

The Local struct is designed to hold data that is unique to each system, providing safe and efficient access to a local instance of the data. This allows each system to maintain its own persistent copy of T throughout its lifetime, preventing interference between systems that may use similar or identical data types.

Template Parameters
TThe type of data to be stored locally within the system.

Member Function Documentation

◆ operator*()

template<typename T >
T & vecs::Local< T >::operator* ( )
inline

Dereferences the local data, providing access to the stored value.

Returns
A reference to the locally stored data of type T.

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