fennec
Loading...
Searching...
No Matches
Utility

This header contains common utility functions related to the C++ language.

Utility
Syntax Description

T&& forward(x)

forwards reference types to extend their lifetime

Template Parameters
Tbase type of the object
Parameters
xreference to the object
Returns

T&& move(x)

produces an x-value type to indicate x may be "moved"

Template Parameters
Tbase type of the object
Parameters
xobject to be moved
Returns
static_cast<remove_reference_t<T>&&>(x)

const T& copy(x)

produces an r-value type to indicate x may be "copied"

Template Parameters
Tbase type of the object
Parameters
xobject to be copied
Returns
const r-value