[PATCH] D22782: Added 'inline' attribute to __init to inline the basic_string's constructor
Sebastian Pop via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 11 09:59:50 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL278356: Add 'inline' attribute to __init to inline the basic_string's constructor (authored by spop).
Changed prior to commit:
https://reviews.llvm.org/D22782?vs=67597&id=67699#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22782
Files:
libcxx/trunk/include/string
Index: libcxx/trunk/include/string
===================================================================
--- libcxx/trunk/include/string
+++ libcxx/trunk/include/string
@@ -1442,6 +1442,7 @@
}
template <class _CharT, class _Traits, class _Allocator>
+inline _LIBCPP_INLINE_VISIBILITY
void
basic_string<_CharT, _Traits, _Allocator>::__init(const value_type* __s, size_type __sz, size_type __reserve)
{
@@ -1466,6 +1467,7 @@
}
template <class _CharT, class _Traits, class _Allocator>
+inline _LIBCPP_INLINE_VISIBILITY
void
basic_string<_CharT, _Traits, _Allocator>::__init(const value_type* __s, size_type __sz)
{
@@ -1603,6 +1605,7 @@
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
template <class _CharT, class _Traits, class _Allocator>
+inline _LIBCPP_INLINE_VISIBILITY
void
basic_string<_CharT, _Traits, _Allocator>::__init(size_type __n, value_type __c)
{
@@ -1699,6 +1702,7 @@
template <class _CharT, class _Traits, class _Allocator>
template <class _InputIterator>
+inline _LIBCPP_INLINE_VISIBILITY
typename enable_if
<
__is_exactly_input_iterator<_InputIterator>::value,
@@ -1726,6 +1730,7 @@
template <class _CharT, class _Traits, class _Allocator>
template <class _ForwardIterator>
+inline _LIBCPP_INLINE_VISIBILITY
typename enable_if
<
__is_forward_iterator<_ForwardIterator>::value,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22782.67699.patch
Type: text/x-patch
Size: 1332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160811/5abaa05b/attachment.bin>
More information about the cfe-commits
mailing list