Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::cnt::to_page_storage_id< T > Struct Template Reference

Customization point for converting a value to its paged-storage identifier. The default implementation supports only empty types and returns an invalid identifier. More...

#include <paged_storage.h>

Static Public Member Functions

static page_storage_id get (const T &item) noexcept
 Applies the default conversion for an item.
 

Detailed Description

template<typename T>
struct gaia::cnt::to_page_storage_id< T >

Customization point for converting a value to its paged-storage identifier. The default implementation supports only empty types and returns an invalid identifier.

Template Parameters
TValue type to convert.

Member Function Documentation

◆ get()

template<typename T >
static page_storage_id gaia::cnt::to_page_storage_id< T >::get ( const T item)
inlinestaticnoexcept

Applies the default conversion for an item.

Parameters
itemItem to convert.
Returns
The invalid paged-storage identifier.

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