|
| void * | std::align (size_t __align, size_t __size, void *&__ptr, size_t &__space) noexcept |
| |
| template<typename _InputIterator , typename _ForwardIterator > |
| _ForwardIterator | std::uninitialized_copy (_InputIterator __first, _InputIterator __last, _ForwardIterator __result) |
| |
| template<typename _InputIterator , typename _Size , typename _ForwardIterator > |
| _ForwardIterator | std::uninitialized_copy_n (_InputIterator __first, _Size __n, _ForwardIterator __result) |
| |
| template<typename _ForwardIterator , typename _Tp > |
| void | std::uninitialized_fill (_ForwardIterator __first, _ForwardIterator __last, const _Tp &__x) |
| |
| template<typename _ForwardIterator , typename _Size , typename _Tp > |
| _ForwardIterator | std::uninitialized_fill_n (_ForwardIterator __first, _Size __n, const _Tp &__x) |
| |
Components for memory allocation, deallocation, and management.
◆ align()
| void* std::align |
( |
size_t |
__align, |
|
|
size_t |
__size, |
|
|
void *& |
__ptr, |
|
|
size_t & |
__space |
|
) |
| |
|
inlinenoexcept |
Fit aligned storage in buffer.
This function tries to fit __size bytes of storage with alignment __align into the buffer __ptr of size __space bytes. If such a buffer fits then __ptr is changed to point to the first byte of the aligned storage and __space is reduced by the bytes used for alignment.
C++11 20.6.5 [ptr.align]
- Parameters
-
| __align | A fundamental or extended alignment value. |
| __size | Size of the aligned storage required. |
| __ptr | Pointer to a buffer of __space bytes. |
| __space | Size of the buffer pointed to by __ptr. |
- Returns
- the updated pointer if the aligned storage fits, otherwise nullptr.
Definition at line 123 of file memory.
◆ uninitialized_copy()
template<typename _InputIterator , typename _ForwardIterator >
| _ForwardIterator std::uninitialized_copy |
( |
_InputIterator |
__first, |
|
|
_InputIterator |
__last, |
|
|
_ForwardIterator |
__result |
|
) |
| |
|
inline |
Copies the range [first,last) into result.
- Parameters
-
| __first | An input iterator. |
| __last | An input iterator. |
| __result | An output iterator. |
- Returns
- __result + (__first - __last)
Like copy(), but does not require an initialized output range.
Definition at line 125 of file stl_uninitialized.h.
Referenced by __gnu_parallel::parallel_sort_mwms_pu().
◆ uninitialized_copy_n()
template<typename _InputIterator , typename _Size , typename _ForwardIterator >
| _ForwardIterator std::uninitialized_copy_n |
( |
_InputIterator |
__first, |
|
|
_Size |
__n, |
|
|
_ForwardIterator |
__result |
|
) |
| |
|
inline |
Copies the range [first,first+n) into result.
- Parameters
-
| __first | An input iterator. |
| __n | The number of elements to copy. |
| __result | An output iterator. |
- Returns
- __result + __n
Like copy_n(), but does not require an initialized output range.
Definition at line 854 of file stl_uninitialized.h.
◆ uninitialized_fill()
template<typename _ForwardIterator , typename _Tp >
| void std::uninitialized_fill |
( |
_ForwardIterator |
__first, |
|
|
_ForwardIterator |
__last, |
|
|
const _Tp & |
__x |
|
) |
| |
|
inline |
Copies the value x into the range [first,last).
- Parameters
-
| __first | An input iterator. |
| __last | An input iterator. |
| __x | The source value. |
- Returns
- Nothing.
Like fill(), but does not require an initialized output range.
Definition at line 200 of file stl_uninitialized.h.
◆ uninitialized_fill_n()
template<typename _ForwardIterator , typename _Size , typename _Tp >
| _ForwardIterator std::uninitialized_fill_n |
( |
_ForwardIterator |
__first, |
|
|
_Size |
__n, |
|
|
const _Tp & |
__x |
|
) |
| |
|
inline |
Copies the value x into the range [first,first+n).
- Parameters
-
| __first | An input iterator. |
| __n | The number of copies to make. |
| __x | The source value. |
- Returns
- Nothing.
Like fill_n(), but does not require an initialized output range.
Definition at line 272 of file stl_uninitialized.h.