We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291ddf1 commit f517816Copy full SHA for f517816
source/containers/algorithms/uninitialized.cpp
@@ -74,8 +74,6 @@ constexpr auto memcpy(void * destination, void const * source, std::size_t const
74
}
75
76
export constexpr auto uninitialized_copy_no_overlap = []<range InputRange, iterator OutputIterator>(InputRange && source, OutputIterator out) {
77
- // TODO: Figure out how to tell the optimizer there is no overlap so I do
78
- // not need to explicitly call `memcpy`.
79
if constexpr (memcpyable<InputRange, OutputIterator>) {
80
if consteval {
81
return uninitialized_copy(OPERATORS_FORWARD(source), out);
0 commit comments