Changeset fbec99a in mainline
- Timestamp:
- 2018-07-05T21:41:18Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 86f7bc6
- Parents:
- 5209fd7
- git-author:
- Jaroslav Jindrak <dzejrou@…> (2017-11-08 21:25:07)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/string.hpp
r5209fd7 rfbec99a 563 563 swap(tmp); 564 564 } 565 566 return *this; 565 567 } 566 568 … … 571 573 if (this != &other) 572 574 swap(other); 575 576 return *this; 573 577 } 574 578 … … 1693 1697 1694 1698 template<class Char, class Traits, class Allocator> 1695 basic_string<Char, Traits, Allocator> 1696 operator==(const basic_string<Char, Traits, Allocator>& lhs, 1697 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1699 bool operator==(const basic_string<Char, Traits, Allocator>& lhs, 1700 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1698 1701 { 1699 1702 return lhs.compare(rhs) == 0; … … 1701 1704 1702 1705 template<class Char, class Traits, class Allocator> 1703 basic_string<Char, Traits, Allocator> 1704 operator==(const Char* lhs, 1705 const basic_string<Char, Traits, Allocator>& rhs) 1706 bool operator==(const Char* lhs, 1707 const basic_string<Char, Traits, Allocator>& rhs) 1706 1708 { 1707 1709 return rhs == lhs; … … 1709 1711 1710 1712 template<class Char, class Traits, class Allocator> 1711 basic_string<Char, Traits, Allocator> 1712 operator==(const basic_string<Char, Traits, Allocator>& lhs, 1713 const Char* rhs) 1713 bool operator==(const basic_string<Char, Traits, Allocator>& lhs, 1714 const Char* rhs) 1714 1715 { 1715 1716 return lhs.compare(rhs) == 0; … … 1721 1722 1722 1723 template<class Char, class Traits, class Allocator> 1723 basic_string<Char, Traits, Allocator> 1724 operator!=(const basic_string<Char, Traits, Allocator>& lhs, 1725 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1724 bool operator!=(const basic_string<Char, Traits, Allocator>& lhs, 1725 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1726 1726 { 1727 1727 return !(lhs == rhs); … … 1729 1729 1730 1730 template<class Char, class Traits, class Allocator> 1731 basic_string<Char, Traits, Allocator> 1732 operator!=(const Char* lhs, 1733 const basic_string<Char, Traits, Allocator>& rhs) 1731 bool operator!=(const Char* lhs, 1732 const basic_string<Char, Traits, Allocator>& rhs) 1734 1733 { 1735 1734 return rhs != lhs; … … 1737 1736 1738 1737 template<class Char, class Traits, class Allocator> 1739 basic_string<Char, Traits, Allocator> 1740 operator!=(const basic_string<Char, Traits, Allocator>& lhs, 1741 const Char* rhs) 1738 bool operator!=(const basic_string<Char, Traits, Allocator>& lhs, 1739 const Char* rhs) 1742 1740 { 1743 1741 return lhs.compare(rhs) != 0; … … 1749 1747 1750 1748 template<class Char, class Traits, class Allocator> 1751 basic_string<Char, Traits, Allocator> 1752 operator<(const basic_string<Char, Traits, Allocator>& lhs, 1753 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1749 bool operator<(const basic_string<Char, Traits, Allocator>& lhs, 1750 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1754 1751 { 1755 1752 return lhs.compare(rhs) < 0; … … 1757 1754 1758 1755 template<class Char, class Traits, class Allocator> 1759 basic_string<Char, Traits, Allocator> 1760 operator<(const Char* lhs, 1761 const basic_string<Char, Traits, Allocator>& rhs) 1756 bool operator<(const Char* lhs, 1757 const basic_string<Char, Traits, Allocator>& rhs) 1762 1758 { 1763 1759 return rhs.compare(lhs) > 0; … … 1765 1761 1766 1762 template<class Char, class Traits, class Allocator> 1767 basic_string<Char, Traits, Allocator> 1768 operator<(const basic_string<Char, Traits, Allocator>& lhs, 1769 const Char* rhs) 1763 bool operator<(const basic_string<Char, Traits, Allocator>& lhs, 1764 const Char* rhs) 1770 1765 { 1771 1766 return lhs.compare(rhs) < 0; … … 1777 1772 1778 1773 template<class Char, class Traits, class Allocator> 1779 basic_string<Char, Traits, Allocator> 1780 operator>(const basic_string<Char, Traits, Allocator>& lhs, 1781 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1774 bool operator>(const basic_string<Char, Traits, Allocator>& lhs, 1775 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1782 1776 { 1783 1777 return lhs.compare(rhs) > 0; … … 1785 1779 1786 1780 template<class Char, class Traits, class Allocator> 1787 basic_string<Char, Traits, Allocator> 1788 operator>(const Char* lhs, 1789 const basic_string<Char, Traits, Allocator>& rhs) 1781 bool operator>(const Char* lhs, 1782 const basic_string<Char, Traits, Allocator>& rhs) 1790 1783 { 1791 1784 return rhs.compare(lhs) < 0; … … 1793 1786 1794 1787 template<class Char, class Traits, class Allocator> 1795 basic_string<Char, Traits, Allocator> 1796 operator>(const basic_string<Char, Traits, Allocator>& lhs, 1797 const Char* rhs) 1788 bool operator>(const basic_string<Char, Traits, Allocator>& lhs, 1789 const Char* rhs) 1798 1790 { 1799 1791 return lhs.compare(rhs) > 0; … … 1805 1797 1806 1798 template<class Char, class Traits, class Allocator> 1807 basic_string<Char, Traits, Allocator> 1808 operator<=(const basic_string<Char, Traits, Allocator>& lhs, 1809 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1799 bool operator<=(const basic_string<Char, Traits, Allocator>& lhs, 1800 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1810 1801 { 1811 1802 return lhs.compare(rhs) <= 0; … … 1813 1804 1814 1805 template<class Char, class Traits, class Allocator> 1815 basic_string<Char, Traits, Allocator> 1816 operator<=(const Char* lhs, 1817 const basic_string<Char, Traits, Allocator>& rhs) 1806 bool operator<=(const Char* lhs, 1807 const basic_string<Char, Traits, Allocator>& rhs) 1818 1808 { 1819 1809 return rhs.compare(lhs) >= 0; … … 1821 1811 1822 1812 template<class Char, class Traits, class Allocator> 1823 basic_string<Char, Traits, Allocator> 1824 operator<=(const basic_string<Char, Traits, Allocator>& lhs, 1825 const Char* rhs) 1813 bool operator<=(const basic_string<Char, Traits, Allocator>& lhs, 1814 const Char* rhs) 1826 1815 { 1827 1816 return lhs.compare(rhs) <= 0; … … 1833 1822 1834 1823 template<class Char, class Traits, class Allocator> 1835 basic_string<Char, Traits, Allocator> 1836 operator>=(const basic_string<Char, Traits, Allocator>& lhs, 1837 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1824 bool operator>=(const basic_string<Char, Traits, Allocator>& lhs, 1825 const basic_string<Char, Traits, Allocator>& rhs) noexcept 1838 1826 { 1839 1827 return lhs.compare(rhs) >= 0; … … 1841 1829 1842 1830 template<class Char, class Traits, class Allocator> 1843 basic_string<Char, Traits, Allocator> 1844 operator>=(const Char* lhs, 1845 const basic_string<Char, Traits, Allocator>& rhs) 1831 bool operator>=(const Char* lhs, 1832 const basic_string<Char, Traits, Allocator>& rhs) 1846 1833 { 1847 1834 return rhs.compare(lhs) <= 0; … … 1849 1836 1850 1837 template<class Char, class Traits, class Allocator> 1851 basic_string<Char, Traits, Allocator> 1852 operator>=(const basic_string<Char, Traits, Allocator>& lhs, 1853 const Char* rhs) 1838 bool operator>=(const basic_string<Char, Traits, Allocator>& lhs, 1839 const Char* rhs) 1854 1840 { 1855 1841 return lhs.compare(rhs) >= 0;
Note:
See TracChangeset
for help on using the changeset viewer.