|
libstdc++
|
Topics | |
| Allocators | |
| Pointer Abstractions | |
| Polymorphic memory resources | |
Files | |
| file | memory |
Functions | |
| void * | std::align (size_t __align, size_t __size, void *&__ptr, size_t &__space) noexcept |
| template<size_t _Align, class _Tp> | |
| constexpr _Tp * | std::assume_aligned (_Tp *__ptr) noexcept |
| template<size_t _Align, class _Tp> | |
| bool | std::is_sufficiently_aligned (_Tp *__ptr) |
| template<typename _InputIterator, typename _ForwardIterator> | |
| constexpr _ForwardIterator | std::uninitialized_copy (_InputIterator __first, _InputIterator __last, _ForwardIterator __result) |
| template<typename _InputIterator, typename _Size, typename _ForwardIterator> | |
| constexpr _ForwardIterator | std::uninitialized_copy_n (_InputIterator __first, _Size __n, _ForwardIterator __result) |
| template<typename _ForwardIterator> | |
| constexpr void | std::uninitialized_default_construct (_ForwardIterator __first, _ForwardIterator __last) |
| template<typename _ForwardIterator, typename _Size> | |
| constexpr _ForwardIterator | std::uninitialized_default_construct_n (_ForwardIterator __first, _Size __count) |
| template<typename _ForwardIterator, typename _Tp = typename iterator_traits<_ForwardIterator>::value_type> | |
| constexpr void | std::uninitialized_fill (_ForwardIterator __first, _ForwardIterator __last, const _Tp &__x) |
| template<typename _ForwardIterator, typename _Size, typename _Tp = typename iterator_traits<_ForwardIterator>::value_type> | |
| constexpr _ForwardIterator | std::uninitialized_fill_n (_ForwardIterator __first, _Size __n, const _Tp &__x) |
| template<typename _InputIterator, typename _ForwardIterator> | |
| constexpr _ForwardIterator | std::uninitialized_move (_InputIterator __first, _InputIterator __last, _ForwardIterator __result) |
| template<typename _InputIterator, typename _Size, typename _ForwardIterator> | |
| constexpr pair< _InputIterator, _ForwardIterator > | std::uninitialized_move_n (_InputIterator __first, _Size __count, _ForwardIterator __result) |
| template<typename _ForwardIterator> | |
| constexpr void | std::uninitialized_value_construct (_ForwardIterator __first, _ForwardIterator __last) |
| template<typename _ForwardIterator, typename _Size> | |
| constexpr _ForwardIterator | std::uninitialized_value_construct_n (_ForwardIterator __first, _Size __count) |
Components for memory allocation, deallocation, and management.
|
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]
| __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. |
Definition at line 60 of file align.h.
References align().
Referenced by align().
|
nodiscardconstexprnoexcept |
Inform the compiler that a pointer is aligned.
| _Align | An alignment value (i.e. a power of two) |
| _Tp | An object type |
| __ptr | A pointer that is aligned to _Align |
C++20 20.10.6 [ptr.align]
Definition at line 90 of file align.h.
References assume_aligned().
Referenced by assume_aligned().
|
inlinenodiscard |
Is __ptr aligned to an _Align byte boundary?
| _Align | An alignment value |
| _Tp | An object type |
C++26 20.2.5 [ptr.align]
Definition at line 118 of file align.h.
References is_sufficiently_aligned().
Referenced by is_sufficiently_aligned().
|
inlineconstexpr |
Copies the range [first,last) into result.
| __first | An input iterator. |
| __last | An input iterator. |
| __result | A forward iterator. |
Like std::copy, but does not require an initialized output range.
Definition at line 252 of file stl_uninitialized.h.
References to_address(), and uninitialized_copy().
Referenced by __gnu_parallel::parallel_sort_mwms_pu(), uninitialized_copy(), and uninitialized_move().
|
inlineconstexpr |
Copies the range [first,first+n) into result.
| __first | An input iterator. |
| __n | The number of elements to copy. |
| __result | An output iterator. |
Like copy_n(), but does not require an initialized output range.
Definition at line 1205 of file stl_uninitialized.h.
References uninitialized_copy_n().
Referenced by uninitialized_copy_n().
|
inlineconstexpr |
Default-initializes objects in the range [first,last).
| __first | A forward iterator. |
| __last | A forward iterator. |
Definition at line 1234 of file stl_uninitialized.h.
References uninitialized_default_construct().
Referenced by uninitialized_default_construct().
|
inlineconstexpr |
Default-initializes objects in the range [first,first+count).
| __first | A forward iterator. |
| __count | The number of objects to construct. |
Definition at line 1250 of file stl_uninitialized.h.
References uninitialized_default_construct_n().
Referenced by uninitialized_default_construct_n().
|
inlineconstexpr |
Copies the value x into the range [first,last).
| __first | A forward iterator. |
| __last | A forward iterator. |
| __x | The source value. |
Like std::fill, but does not require an initialized output range.
Definition at line 413 of file stl_uninitialized.h.
References to_address(), and uninitialized_fill().
Referenced by uninitialized_fill().
|
inlineconstexpr |
Copies the value x into the range [first,first+n).
| __first | A forward iterator. |
| __n | The number of copies to make. |
| __x | The source value. |
Like std::fill_n, but does not require an initialized output range.
Definition at line 550 of file stl_uninitialized.h.
References to_address(), and uninitialized_fill_n().
Referenced by uninitialized_fill_n().
|
inlineconstexpr |
Move-construct from the range [first,last) into result.
| __first | An input iterator. |
| __last | An input iterator. |
| __result | An output iterator. |
Definition at line 1296 of file stl_uninitialized.h.
References uninitialized_copy(), and uninitialized_move().
Referenced by uninitialized_move().
|
inlineconstexpr |
Move-construct from the range [first,first+count) into result.
| __first | An input iterator. |
| __count | The number of objects to initialize. |
| __result | An output iterator. |
Definition at line 1315 of file stl_uninitialized.h.
References uninitialized_move_n().
Referenced by uninitialized_move_n().
|
inlineconstexpr |
Value-initializes objects in the range [first,last).
| __first | A forward iterator. |
| __last | A forward iterator. |
Definition at line 1264 of file stl_uninitialized.h.
References uninitialized_value_construct().
Referenced by uninitialized_value_construct().
|
inlineconstexpr |
Value-initializes objects in the range [first,first+count).
| __first | A forward iterator. |
| __count | The number of objects to construct. |
Definition at line 1280 of file stl_uninitialized.h.
References uninitialized_value_construct_n().
Referenced by uninitialized_value_construct_n().