native 0.0.1
Vectors, masks and wide register packs for C++26
Loading...
Searching...
No Matches
native::c_free Struct Referenceexport

Static Public Member Functions

template<trivially_destructible T>
static void operator() (T *p) noexcept

Detailed Description

Release C-allocated storage with std::free; never use it for new-allocated storage.

Definition at line 30 of file native.memory.ccm.

Member Function Documentation

◆ operator()()

template<trivially_destructible T>
void native::c_free::operator() ( T * p)
inlinestaticnoexcept

Release p without running destructors. A null pointer is allowed.

Precondition
A non-null p comes from an allocation compatible with std::free.

Definition at line 36 of file native.memory.ccm.


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