aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-09-24 11:30:59 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-09-24 15:38:44 +0100
commit9b11107ed72ca543af41dbb3226e16b61d31b098 (patch)
tree01594c184f335f9e01442162802268932fb1deb9
parent710c6ab4ad502cddc8bdf82c95f580fa94fbf9fb (diff)
downloadgcc-9b11107ed72ca543af41dbb3226e16b61d31b098.zip
gcc-9b11107ed72ca543af41dbb3226e16b61d31b098.tar.gz
gcc-9b11107ed72ca543af41dbb3226e16b61d31b098.tar.bz2
libstdc++: Remove redundant 'inline' specifiers
These functions are constexpr, which means they are implicitly inline. Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * include/bits/range_access.h (cbegin, cend): Remove redundant 'inline' specifier.
-rw-r--r--libstdc++-v3/include/bits/range_access.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h
index ab2d4f8..3dec687 100644
--- a/libstdc++-v3/include/bits/range_access.h
+++ b/libstdc++-v3/include/bits/range_access.h
@@ -122,7 +122,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/
template<typename _Container>
[[__nodiscard__]]
- inline constexpr auto
+ constexpr auto
cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont)))
-> decltype(std::begin(__cont))
{ return std::begin(__cont); }
@@ -134,7 +134,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/
template<typename _Container>
[[__nodiscard__]]
- inline constexpr auto
+ constexpr auto
cend(const _Container& __cont) noexcept(noexcept(std::end(__cont)))
-> decltype(std::end(__cont))
{ return std::end(__cont); }