@@ -1662,15 +1662,15 @@ struct __libcpp_is_trivial_iterator<__wrap_iter<_Iter> >
1662
1662
1663
1663
1664
1664
template <class _Tp , size_t _Np>
1665
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
1665
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
1666
1666
_Tp*
1667
1667
begin (_Tp (&__array)[_Np])
1668
1668
{
1669
1669
return __array;
1670
1670
}
1671
1671
1672
1672
template <class _Tp , size_t _Np>
1673
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
1673
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
1674
1674
_Tp*
1675
1675
end (_Tp (&__array)[_Np])
1676
1676
{
@@ -1680,31 +1680,31 @@ end(_Tp (&__array)[_Np])
1680
1680
#if !defined(_LIBCPP_CXX03_LANG)
1681
1681
1682
1682
template <class _Cp >
1683
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1683
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1684
1684
auto
1685
1685
begin (_Cp& __c) -> decltype(__c.begin())
1686
1686
{
1687
1687
return __c.begin ();
1688
1688
}
1689
1689
1690
1690
template <class _Cp >
1691
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1691
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1692
1692
auto
1693
1693
begin (const _Cp& __c) -> decltype(__c.begin())
1694
1694
{
1695
1695
return __c.begin ();
1696
1696
}
1697
1697
1698
1698
template <class _Cp >
1699
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1699
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1700
1700
auto
1701
1701
end (_Cp& __c) -> decltype(__c.end())
1702
1702
{
1703
1703
return __c.end ();
1704
1704
}
1705
1705
1706
1706
template <class _Cp >
1707
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1707
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1708
1708
auto
1709
1709
end (const _Cp& __c) -> decltype(__c.end())
1710
1710
{
@@ -1714,84 +1714,84 @@ end(const _Cp& __c) -> decltype(__c.end())
1714
1714
#if _LIBCPP_STD_VER > 11
1715
1715
1716
1716
template <class _Tp , size_t _Np>
1717
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1717
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1718
1718
reverse_iterator<_Tp*> rbegin (_Tp (&__array)[_Np])
1719
1719
{
1720
1720
return reverse_iterator<_Tp*>(__array + _Np);
1721
1721
}
1722
1722
1723
1723
template <class _Tp , size_t _Np>
1724
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1724
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1725
1725
reverse_iterator<_Tp*> rend (_Tp (&__array)[_Np])
1726
1726
{
1727
1727
return reverse_iterator<_Tp*>(__array);
1728
1728
}
1729
1729
1730
1730
template <class _Ep >
1731
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1731
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1732
1732
reverse_iterator<const _Ep*> rbegin (initializer_list<_Ep> __il)
1733
1733
{
1734
1734
return reverse_iterator<const _Ep*>(__il.end ());
1735
1735
}
1736
1736
1737
1737
template <class _Ep >
1738
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1738
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1739
1739
reverse_iterator<const _Ep*> rend (initializer_list<_Ep> __il)
1740
1740
{
1741
1741
return reverse_iterator<const _Ep*>(__il.begin ());
1742
1742
}
1743
1743
1744
1744
template <class _Cp >
1745
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
1745
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
1746
1746
auto cbegin (const _Cp& __c) -> decltype(_VSTD::begin(__c))
1747
1747
{
1748
1748
return _VSTD::begin (__c);
1749
1749
}
1750
1750
1751
1751
template <class _Cp >
1752
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
1752
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
1753
1753
auto cend (const _Cp& __c) -> decltype(_VSTD::end(__c))
1754
1754
{
1755
1755
return _VSTD::end (__c);
1756
1756
}
1757
1757
1758
1758
template <class _Cp >
1759
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1759
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1760
1760
auto rbegin (_Cp& __c) -> decltype(__c.rbegin())
1761
1761
{
1762
1762
return __c.rbegin ();
1763
1763
}
1764
1764
1765
1765
template <class _Cp >
1766
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1766
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1767
1767
auto rbegin (const _Cp& __c) -> decltype(__c.rbegin())
1768
1768
{
1769
1769
return __c.rbegin ();
1770
1770
}
1771
1771
1772
1772
template <class _Cp >
1773
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1773
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1774
1774
auto rend (_Cp& __c) -> decltype(__c.rend())
1775
1775
{
1776
1776
return __c.rend ();
1777
1777
}
1778
1778
1779
1779
template <class _Cp >
1780
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1780
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1781
1781
auto rend (const _Cp& __c) -> decltype(__c.rend())
1782
1782
{
1783
1783
return __c.rend ();
1784
1784
}
1785
1785
1786
1786
template <class _Cp >
1787
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1787
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1788
1788
auto crbegin (const _Cp& __c) -> decltype(_VSTD::rbegin(__c))
1789
1789
{
1790
1790
return _VSTD::rbegin (__c);
1791
1791
}
1792
1792
1793
1793
template <class _Cp >
1794
- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1794
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
1795
1795
auto crend (const _Cp& __c) -> decltype(_VSTD::rend(__c))
1796
1796
{
1797
1797
return _VSTD::rend (__c);
@@ -1803,31 +1803,31 @@ auto crend(const _Cp& __c) -> decltype(_VSTD::rend(__c))
1803
1803
#else // defined(_LIBCPP_CXX03_LANG)
1804
1804
1805
1805
template <class _Cp >
1806
- inline _LIBCPP_INLINE_VISIBILITY
1806
+ _LIBCPP_INLINE_VISIBILITY
1807
1807
typename _Cp::iterator
1808
1808
begin (_Cp& __c)
1809
1809
{
1810
1810
return __c.begin ();
1811
1811
}
1812
1812
1813
1813
template <class _Cp >
1814
- inline _LIBCPP_INLINE_VISIBILITY
1814
+ _LIBCPP_INLINE_VISIBILITY
1815
1815
typename _Cp::const_iterator
1816
1816
begin (const _Cp& __c)
1817
1817
{
1818
1818
return __c.begin ();
1819
1819
}
1820
1820
1821
1821
template <class _Cp >
1822
- inline _LIBCPP_INLINE_VISIBILITY
1822
+ _LIBCPP_INLINE_VISIBILITY
1823
1823
typename _Cp::iterator
1824
1824
end (_Cp& __c)
1825
1825
{
1826
1826
return __c.end ();
1827
1827
}
1828
1828
1829
1829
template <class _Cp >
1830
- inline _LIBCPP_INLINE_VISIBILITY
1830
+ _LIBCPP_INLINE_VISIBILITY
1831
1831
typename _Cp::const_iterator
1832
1832
end (const _Cp& __c)
1833
1833
{
@@ -1853,64 +1853,64 @@ end(const _Cp& __c)
1853
1853
// #endif
1854
1854
1855
1855
template <class _Cont >
1856
- inline _LIBCPP_INLINE_VISIBILITY
1856
+ _LIBCPP_INLINE_VISIBILITY
1857
1857
constexpr auto size (const _Cont& __c)
1858
1858
_NOEXCEPT_(noexcept (__c.size()))
1859
1859
-> decltype (__c.size())
1860
1860
{ return __c.size (); }
1861
1861
1862
1862
template <class _Tp , size_t _Sz>
1863
- inline _LIBCPP_INLINE_VISIBILITY
1863
+ _LIBCPP_INLINE_VISIBILITY
1864
1864
constexpr size_t size (const _Tp (&)[_Sz]) noexcept { return _Sz; }
1865
1865
1866
1866
#if _LIBCPP_STD_VER > 17
1867
1867
template <class _Cont >
1868
- inline _LIBCPP_INLINE_VISIBILITY
1868
+ _LIBCPP_INLINE_VISIBILITY
1869
1869
constexpr auto ssize (const _Cont& __c)
1870
1870
_NOEXCEPT_(noexcept (static_cast <common_type_t <ptrdiff_t , make_signed_t <decltype (__c.size())>>>(__c.size())))
1871
1871
-> common_type_t<ptrdiff_t, make_signed_t<decltype(__c.size())>>
1872
1872
{ return static_cast <common_type_t <ptrdiff_t , make_signed_t <decltype (__c.size ())>>>(__c.size ()); }
1873
1873
1874
1874
template <class _Tp , ptrdiff_t _Sz>
1875
- inline _LIBCPP_INLINE_VISIBILITY
1875
+ _LIBCPP_INLINE_VISIBILITY
1876
1876
constexpr ptrdiff_t ssize (const _Tp (&)[_Sz]) noexcept { return _Sz; }
1877
1877
#endif
1878
1878
1879
1879
template <class _Cont >
1880
- _LIBCPP_NODISCARD_AFTER_CXX17 inline _LIBCPP_INLINE_VISIBILITY
1880
+ _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY
1881
1881
constexpr auto empty (const _Cont& __c)
1882
1882
_NOEXCEPT_(noexcept (__c.empty()))
1883
1883
-> decltype (__c.empty())
1884
1884
{ return __c.empty (); }
1885
1885
1886
1886
template <class _Tp , size_t _Sz>
1887
- _LIBCPP_NODISCARD_AFTER_CXX17 inline _LIBCPP_INLINE_VISIBILITY
1887
+ _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY
1888
1888
constexpr bool empty (const _Tp (&)[_Sz]) noexcept { return false ; }
1889
1889
1890
1890
template <class _Ep >
1891
- _LIBCPP_NODISCARD_AFTER_CXX17 inline _LIBCPP_INLINE_VISIBILITY
1891
+ _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY
1892
1892
constexpr bool empty (initializer_list<_Ep> __il) noexcept { return __il.size () == 0 ; }
1893
1893
1894
1894
template <class _Cont > constexpr
1895
- inline _LIBCPP_INLINE_VISIBILITY
1895
+ _LIBCPP_INLINE_VISIBILITY
1896
1896
auto data (_Cont& __c)
1897
1897
_NOEXCEPT_(noexcept (__c.data()))
1898
1898
-> decltype (__c.data())
1899
1899
{ return __c.data (); }
1900
1900
1901
1901
template <class _Cont > constexpr
1902
- inline _LIBCPP_INLINE_VISIBILITY
1902
+ _LIBCPP_INLINE_VISIBILITY
1903
1903
auto data (const _Cont& __c)
1904
1904
_NOEXCEPT_(noexcept (__c.data()))
1905
1905
-> decltype (__c.data())
1906
1906
{ return __c.data (); }
1907
1907
1908
1908
template <class _Tp , size_t _Sz>
1909
- inline _LIBCPP_INLINE_VISIBILITY
1909
+ _LIBCPP_INLINE_VISIBILITY
1910
1910
constexpr _Tp* data (_Tp (&__array)[_Sz]) noexcept { return __array; }
1911
1911
1912
1912
template <class _Ep >
1913
- inline _LIBCPP_INLINE_VISIBILITY
1913
+ _LIBCPP_INLINE_VISIBILITY
1914
1914
constexpr const _Ep* data (initializer_list<_Ep> __il) noexcept { return __il.begin (); }
1915
1915
#endif
1916
1916
0 commit comments