mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2025-03-03 09:17:09 +00:00
[libcxx] Apply _LIBCPP_INLINE_VISIBILITY for std::hash for string_view
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@347765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c56c9cffe6
commit
6bc632fa1a
@ -778,17 +778,12 @@ template<class _CharT, class _Traits>
|
||||
struct _LIBCPP_TEMPLATE_VIS hash<basic_string_view<_CharT, _Traits> >
|
||||
: public unary_function<basic_string_view<_CharT, _Traits>, size_t>
|
||||
{
|
||||
size_t operator()(const basic_string_view<_CharT, _Traits> __val) const _NOEXCEPT;
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
size_t operator()(const basic_string_view<_CharT, _Traits> __val) const _NOEXCEPT {
|
||||
return __do_string_hash(__val.data(), __val.data() + __val.size());
|
||||
}
|
||||
};
|
||||
|
||||
template<class _CharT, class _Traits>
|
||||
size_t
|
||||
hash<basic_string_view<_CharT, _Traits> >::operator()(
|
||||
const basic_string_view<_CharT, _Traits> __val) const _NOEXCEPT
|
||||
{
|
||||
return __do_string_hash(__val.data(), __val.data() + __val.size());
|
||||
}
|
||||
|
||||
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
inline namespace literals
|
||||
|
Loading…
x
Reference in New Issue
Block a user