mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
libstdc++: Fix grammatical error in comment in std::advance
libstdc++-v3/ChangeLog: * include/bits/stl_iterator_base_funcs.h (advance): Fix comment.
This commit is contained in:
committed by
Jonathan Wakely
parent
4afb257fc2
commit
fcd30bdb83
@@ -265,7 +265,7 @@ namespace __detail
|
||||
// A type which satisfies the C++20 bidirectional_iterator concept might
|
||||
// have input_iterator_tag as its iterator_category type, which would
|
||||
// mean we select the __advance overload which cannot move backwards.
|
||||
// A C++20 random_access_iterator we might select the O(n) __advance
|
||||
// For a C++20 random_access_iterator we might select the O(n) __advance
|
||||
// if it doesn't meet the Cpp17RandomAccessIterator requirements.
|
||||
// So for C++20 iterator types we can just choose to do the right thing.
|
||||
if constexpr (__detail::__promotable_iterator<_InputIterator>
|
||||
|
||||
Reference in New Issue
Block a user