qxLib
Classes | Functions
sbo_poly.h File Reference
#include <qx/memory/sbo_bytes.h>
#include <exception>
#include <memory>
#include <new>
#include <type_traits>
#include <utility>
#include <qx/memory/sbo_poly.inl>

Go to the source code of this file.

Classes

struct  qx::sbo_poly_fittable_type< sbo_poly_t, derived_t >
 
struct  qx::sbo_poly_fittable_types< sbo_poly_t, args_t >
 

Functions

template<class base_t , size_t nSBOSize_>
 qx::requires (nSBOSize_ > sizeof(void *)) class sbo_poly
 

Detailed Description

Author
Khrapov
Date
20.12.2025

Definition in file sbo_poly.h.

Function Documentation

◆ requires()

template<class base_t , size_t nSBOSize_>
qx::requires ( nSBOSize_  ,
sizeof(void *)   
)

sbo_poly object constructor

Template Parameters
derived_t- type inherited from base_t
Parameters
object- an object to store

operator=

Template Parameters
derived_t- type inherited from base_t
Parameters
object- an object to store
Return values
-this object reference

Assign a new object to this SBO

Template Parameters
derived_t- type inherited from base_t
Parameters
object- an object to store

Get object reference. Always valid.

Return values
-object reference

Get object reference. Always valid.

Return values
-object reference

Get type operations table

Template Parameters
derived_t- type inherited from base_t
Return values
-operations

Get the number of bytes required to store an object with proper alignment

Template Parameters
derived_t- type inherited from base_t
Return values
-object size plus the worst-case alignment padding when required

Get a properly aligned pointer to an object in the storage

Template Parameters
derived_t- type inherited from base_t
Parameters
data- storage containing the object
Return values
-aligned pointer to the object

Definition at line 64 of file sbo_poly.h.