diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-11-17 10:20:50 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-11-19 15:05:28 +0000 |
commit | fca0f50b145048afda17f0f10ac968afe6be0fad (patch) | |
tree | 0f983a17b4e841d57486699532ef7dabae4dc4b1 /libstdc++-v3 | |
parent | 945e86ddaa6cc7251d7bb57be8bb65f182cd3a0c (diff) | |
download | gcc-fca0f50b145048afda17f0f10ac968afe6be0fad.zip gcc-fca0f50b145048afda17f0f10ac968afe6be0fad.tar.gz gcc-fca0f50b145048afda17f0f10ac968afe6be0fad.tar.bz2 |
libstdc++: Fix Doxygen warning
This fixes a Doxygen warning about a mismatched parameter name. The
standard uses 'r' here, like the Doxygen comment, so use '__r' instead
of '__e'.
libstdc++-v3/ChangeLog:
* include/bits/ptr_traits.h (pointer_traits::pointer_to): Rename
parameter.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/include/bits/ptr_traits.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/include/bits/ptr_traits.h b/libstdc++-v3/include/bits/ptr_traits.h index 71370ff..b46a1ac 100644 --- a/libstdc++-v3/include/bits/ptr_traits.h +++ b/libstdc++-v3/include/bits/ptr_traits.h @@ -104,17 +104,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /** * @brief Obtain a pointer to an object * @param __r A reference to an object of type `element_type` - * @return `pointer::pointer_to(__e)` - * @pre `pointer::pointer_to(__e)` is a valid expression. + * @return `pointer::pointer_to(__r)` + * @pre `pointer::pointer_to(__r)` is a valid expression. */ static pointer - pointer_to(element_type& __e) + pointer_to(element_type& __r) #if __cpp_lib_concepts requires requires { - { pointer::pointer_to(__e) } -> convertible_to<pointer>; + { pointer::pointer_to(__r) } -> convertible_to<pointer>; } #endif - { return pointer::pointer_to(__e); } + { return pointer::pointer_to(__r); } }; // Do not define pointer_traits<P>::pointer_to if element type is void. |