jeudi 16 septembre 2021

Why does std::align take in a reference to a pointer as a parameter

This is the signature of std::align

void* align( std::size_t alignment,
             std::size_t size,
             void*& ptr,
             std::size_t& space );

Why does it take in void*& if it already returns adjusted pointer? Am I missing something?

Aucun commentaire:

Enregistrer un commentaire