|
2292 | 2292 | \end{itemize}
|
2293 | 2293 | where \tcode{r1} and \tcode{r2} are keys of elements in \tcode{a_tran},
|
2294 | 2294 | \item \tcode{n} denotes a value of type \tcode{size_type},
|
2295 |
| -\item \tcode{z} denotes a value of type \tcode{float}, |
2296 |
| -\item \tcode{nh} denotes a non-const rvalue of type \tcode{X::node_type}, and |
2297 |
| -\item \tcode{hk} and \tcode{hke} denote values of type \tcode{size_t}. |
| 2295 | +\item \tcode{z} denotes a value of type \tcode{float}, and |
| 2296 | +\item \tcode{nh} denotes a non-const rvalue of type \tcode{X::node_type}. |
2298 | 2297 | \end{itemize}
|
2299 | 2298 |
|
2300 | 2299 | % Local command to index names as members of all unordered containers.
|
|
2748 | 2747 | & Average case \bigoh{1}, worst case \bigoh{\tcode{b.size()}}.
|
2749 | 2748 | \\ \rowsep
|
2750 | 2749 | %
|
2751 |
| -\tcode{b.find(k, hk)} |
2752 |
| -& \tcode{iterator}; \br \tcode{const_iterator} for const \tcode{b}. |
2753 |
| -& \expects \tcode{b.hash_function()(k)} equals \tcode{hk}.\br |
2754 |
| - \returns An iterator pointing to an element with key equivalent to |
2755 |
| - \tcode{k}, or \tcode{b.end()} if no such element exists. |
2756 |
| -& Average case \bigoh{1}, worst case \bigoh{\tcode{b.size()}}. |
2757 |
| -\\ \rowsep |
2758 |
| -% |
2759 | 2750 | \tcode{a_tran.find(ke)}
|
2760 | 2751 | & \tcode{iterator}; \br \tcode{const_iterator} for const \tcode{a_tran}.
|
2761 | 2752 | & \returns An iterator pointing to an element with key equivalent to
|
|
2764 | 2755 | worst case \bigoh{\tcode{a_tran.}\br{}\tcode{size()}}. % avoid overfull
|
2765 | 2756 | \\ \rowsep
|
2766 | 2757 | %
|
2767 |
| -\tcode{a_tran.find(ke, hke)} |
2768 |
| -& \tcode{iterator}; \br \tcode{const_iterator} for const \tcode{a_tran}. |
2769 |
| -& \expects \tcode{a_tran.hash_function()(ke)} equals \tcode{hke}.\br |
2770 |
| - \returns An iterator pointing to an element with key equivalent to |
2771 |
| - \tcode{ke}, or \tcode{a_tran.end()} if no such element exists.% |
2772 |
| -& Average case \bigoh{1}, |
2773 |
| - worst case \bigoh{\tcode{a_tran.}\br{}\tcode{size()}}. % avoid overfull |
2774 |
| -\\ \rowsep |
2775 |
| -% |
2776 | 2758 | \indexunordmem{count}%
|
2777 | 2759 | \tcode{b.count(k)}
|
2778 | 2760 | & \tcode{size_type}
|
2779 | 2761 | & \returns The number of elements with key equivalent to \tcode{k}.%
|
2780 | 2762 | & Average case \bigoh{\tcode{b.count(k)}}, worst case \bigoh{\tcode{b.size()}}.
|
2781 | 2763 | \\ \rowsep
|
2782 | 2764 | %
|
2783 |
| -\tcode{b.count(k, hk)} |
2784 |
| -& \tcode{size_type} |
2785 |
| -& \expects \tcode{b.hash_function()(k)} equals \tcode{hk}.\br |
2786 |
| - \returns The number of elements with key equivalent to \tcode{k}.% |
2787 |
| -& Average case \bigoh{\tcode{b.count(k)}}, worst case \bigoh{\tcode{b.size()}}. |
2788 |
| -\\ \rowsep |
2789 |
| -% |
2790 | 2765 | \tcode{a_tran.count(ke)}
|
2791 | 2766 | & \tcode{size_type}
|
2792 | 2767 | & \returns The number of elements with key equivalent to \tcode{ke}.%
|
|
2795 | 2770 | worst case \bigoh{\tcode{a_tran.}\br{}\tcode{size()}}. % avoid overfull
|
2796 | 2771 | \\ \rowsep
|
2797 | 2772 | %
|
2798 |
| -\tcode{a_tran.count(ke, hke)} |
2799 |
| -& \tcode{size_type} |
2800 |
| -& \expects \tcode{b.hash_function()(ke)} equals \tcode{hke}.\br |
2801 |
| - \returns The number of elements with key equivalent to \tcode{ke}.% |
2802 |
| -& Average case |
2803 |
| - \bigoh{\tcode{a_tran.}\br{}\tcode{count(ke)}}, % avoid overfull |
2804 |
| - worst case \bigoh{\tcode{a_tran.}\br{}\tcode{size()}}. % avoid overfull |
2805 |
| -\\ \rowsep |
2806 |
| -% |
2807 | 2773 | \indexunordmem{contains}%
|
2808 | 2774 | \tcode{b.contains(k)}
|
2809 | 2775 | & \tcode{bool}
|
2810 | 2776 | & \effects Equivalent to \tcode{b.find(k) != b.end()}%
|
2811 | 2777 | & Average case \bigoh{1}, worst case \bigoh{\tcode{b.size()}}.
|
2812 | 2778 | \\ \rowsep
|
2813 | 2779 | %
|
2814 |
| -\tcode{b.contains(k, hk)} |
2815 |
| -& \tcode{bool} |
2816 |
| -& \expects \tcode{b.hash_function()(ke)} equals \tcode{hke}.\br |
2817 |
| - \effects Equivalent to \tcode{b.find(k) != b.end()}% |
2818 |
| -& Average case \bigoh{1}, worst case \bigoh{\tcode{b.size()}}. |
2819 |
| -\\ \rowsep |
2820 |
| -% |
2821 | 2780 | \tcode{a_tran.contains(ke)}
|
2822 | 2781 | & \tcode{bool}
|
2823 | 2782 | & \effects Equivalent to \tcode{a_tran.find(ke) != a_tran.end()}%
|
2824 | 2783 | & Average case \bigoh{1},
|
2825 | 2784 | worst case \bigoh{\tcode{a_tran.}\br{}\tcode{size()}}. % avoid overfull
|
2826 | 2785 | \\ \rowsep
|
2827 | 2786 | %
|
2828 |
| -\tcode{a_tran.contains(ke, hke)} |
2829 |
| -& \tcode{bool} |
2830 |
| -& \expects \tcode{a_tran.hash_function()(ke)} equals \tcode{hke}.\br |
2831 |
| - \effects Equivalent to \tcode{a_tran.find(ke, hke) != a_tran.end()}% |
2832 |
| -& Average case \bigoh{1}, |
2833 |
| - worst case \bigoh{\tcode{a_tran.}\br{}\tcode{size()}}. % avoid overfull |
2834 |
| -\\ \rowsep |
2835 |
| -% |
2836 | 2787 | \indexunordmem{equal_range}%
|
2837 | 2788 | \tcode{b.equal_range(k)}
|
2838 | 2789 | & \tcode{pair<iterator, iterator>}; \br
|
|
2844 | 2795 | \bigoh{\tcode{b.size()}}.
|
2845 | 2796 | \\ \rowsep
|
2846 | 2797 | %
|
2847 |
| -\tcode{b.equal_range(k, hk)} |
2848 |
| -& \tcode{pair<iterator, iterator>}; \br |
2849 |
| - \tcode{pair<const_iterator, const_iterator>} for const \tcode{b}. |
2850 |
| -& \expects \tcode{b.hash_function()(k)} equals \tcode{hk}.\br |
2851 |
| - \returns A range containing all elements with keys equivalent to |
2852 |
| - \tcode{k}. Returns \tcode{make_pair(b.end(), b.end())} if |
2853 |
| - no such elements exist.% |
2854 |
| -& Average case \bigoh{\tcode{b.count(k)}}, worst case |
2855 |
| - \bigoh{\tcode{b.size()}}. |
2856 |
| -\\ \rowsep |
2857 |
| -% |
2858 | 2798 | \tcode{a_tran.equal_range(ke)}
|
2859 | 2799 | & \tcode{pair<iterator, iterator>}; \br
|
2860 | 2800 | \tcode{pair<const_iterator, const_iterator>} for const \tcode{a_tran}.
|
|
2866 | 2806 | worst case \bigoh{\tcode{a_tran.}\br{}\tcode{size()}}. % avoid overfull
|
2867 | 2807 | \\ \rowsep
|
2868 | 2808 | %
|
2869 |
| -\tcode{a_tran.equal_range(ke, hke)} |
2870 |
| -& \tcode{pair<iterator, iterator>}; \br |
2871 |
| - \tcode{pair<const_iterator, const_iterator>} for const \tcode{a_tran}. |
2872 |
| -& \expects \tcode{a_tran.hash_function()(ke)} equals \tcode{hke}.\br |
2873 |
| - \returns A range containing all elements with keys equivalent to |
2874 |
| - \tcode{ke}. Returns \tcode{make_pair(a_tran.end(), a_tran.end())} if |
2875 |
| - no such elements exist.% |
2876 |
| -& Average case |
2877 |
| - \bigoh{\tcode{a_tran.}\br{}\tcode{count(ke)}}, % avoid overfull |
2878 |
| - worst case \bigoh{\tcode{a_tran.}\br{}\tcode{size()}}. % avoid overfull |
2879 |
| -\\ \rowsep |
2880 | 2809 | \indexunordmem{bucket_count}%
|
2881 | 2810 | \tcode{b.bucket_count()}
|
2882 | 2811 | & \tcode{size_type}
|
|
7989 | 7918 | // map operations
|
7990 | 7919 | iterator find(const key_type& k);
|
7991 | 7920 | const_iterator find(const key_type& k) const;
|
7992 |
| - iterator find(const key_type& k, size_t hash); |
7993 |
| - const_iterator find(const key_type& k, size_t hash) const; |
7994 | 7921 | template<class K>
|
7995 | 7922 | iterator find(const K& k);
|
7996 | 7923 | template<class K>
|
7997 | 7924 | const_iterator find(const K& k) const;
|
7998 | 7925 | template<class K>
|
7999 |
| - iterator find(const K& k, size_t hash); |
8000 |
| - template<class K> |
8001 |
| - const_iterator find(const K& k, size_t hash) const; |
8002 | 7926 | size_type count(const key_type& k) const;
|
8003 |
| - size_type count(const key_type& k, size_t hash) const; |
8004 | 7927 | template<class K>
|
8005 | 7928 | size_type count(const K& k) const;
|
8006 |
| - template<class K> |
8007 |
| - size_type count(const K& k, size_t hash) const; |
8008 | 7929 | bool contains(const key_type& k) const;
|
8009 |
| - bool contains(const key_type& k, size_t hash) const; |
8010 | 7930 | template<class K>
|
8011 | 7931 | bool contains(const K& k) const;
|
8012 |
| - template<class K> |
8013 |
| - bool contains(const K& k, size_t hash) const; |
8014 | 7932 | pair<iterator, iterator> equal_range(const key_type& k);
|
8015 | 7933 | pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
|
8016 |
| - pair<iterator, iterator> equal_range(const key_type& k, size_t hash); |
8017 |
| - pair<const_iterator, const_iterator> equal_range(const key_type& k, size_t hash) const; |
8018 | 7934 | template<class K>
|
8019 | 7935 | pair<iterator, iterator> equal_range(const K& k);
|
8020 | 7936 | template<class K>
|
8021 | 7937 | pair<const_iterator, const_iterator> equal_range(const K& k) const;
|
8022 |
| - template<class K> |
8023 |
| - pair<iterator, iterator> equal_range(const K& k, size_t hash); |
8024 |
| - template<class K> |
8025 |
| - pair<const_iterator, const_iterator> equal_range(const K& k, size_t hash) const; |
8026 | 7938 |
|
8027 | 7939 | // \ref{unord.map.elem}, element access
|
8028 | 7940 | mapped_type& operator[](const key_type& k);
|
|
8577 | 8489 | // map operations
|
8578 | 8490 | iterator find(const key_type& k);
|
8579 | 8491 | const_iterator find(const key_type& k) const;
|
8580 |
| - iterator find(const key_type& k, size_t hash); |
8581 |
| - const_iterator find(const key_type& k, size_t hash) const; |
8582 | 8492 | template<class K>
|
8583 | 8493 | iterator find(const K& k);
|
8584 | 8494 | template<class K>
|
8585 | 8495 | const_iterator find(const K& k) const;
|
8586 |
| - template<class K> |
8587 |
| - iterator find(const K& k, size_t hash); |
8588 |
| - template<class K> |
8589 |
| - const_iterator find(const K& k, size_t hash) const; |
8590 | 8496 | size_type count(const key_type& k) const;
|
8591 |
| - size_type count(const key_type& k, size_t hash) const; |
8592 | 8497 | template<class K>
|
8593 | 8498 | size_type count(const K& k) const;
|
8594 |
| - template<class K> |
8595 |
| - size_type count(const K& k, size_t hash) const; |
8596 | 8499 | bool contains(const key_type& k) const;
|
8597 |
| - bool contains(const key_type& k, size_t hash) const; |
8598 | 8500 | template<class K>
|
8599 | 8501 | bool contains(const K& k) const;
|
8600 |
| - template<class K> |
8601 |
| - bool contains(const K& k, size_t hash) const; |
8602 | 8502 | pair<iterator, iterator> equal_range(const key_type& k);
|
8603 | 8503 | pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
|
8604 |
| - pair<iterator, iterator> equal_range(const key_type& k, size_t hash); |
8605 |
| - pair<const_iterator, const_iterator> equal_range(const key_type& k, size_t hash) const; |
8606 | 8504 | template<class K>
|
8607 | 8505 | pair<iterator, iterator> equal_range(const K& k);
|
8608 | 8506 | template<class K>
|
8609 | 8507 | pair<const_iterator, const_iterator> equal_range(const K& k) const;
|
8610 |
| - template<class K> |
8611 |
| - pair<iterator, iterator> equal_range(const K& k, size_t hash); |
8612 |
| - template<class K> |
8613 |
| - pair<const_iterator, const_iterator> equal_range(const K& k, size_t hash) const; |
8614 | 8508 |
|
8615 | 8509 | // bucket interface
|
8616 | 8510 | size_type bucket_count() const noexcept;
|
|
8957 | 8851 | // set operations
|
8958 | 8852 | iterator find(const key_type& k);
|
8959 | 8853 | const_iterator find(const key_type& k) const;
|
8960 |
| - iterator find(const key_type& k, size_t hash); |
8961 |
| - const_iterator find(const key_type& k, size_t hash) const; |
8962 | 8854 | template<class K>
|
8963 | 8855 | iterator find(const K& k);
|
8964 | 8856 | template<class K>
|
8965 | 8857 | const_iterator find(const K& k) const;
|
8966 |
| - template<class K> |
8967 |
| - iterator find(const K& k, size_t hash); |
8968 |
| - template<class K> |
8969 |
| - const_iterator find(const K& k, size_t hash) const; |
8970 | 8858 | size_type count(const key_type& k) const;
|
8971 |
| - size_type count(const key_type& k, size_t hash) const; |
8972 | 8859 | template<class K>
|
8973 | 8860 | size_type count(const K& k) const;
|
8974 |
| - template<class K> |
8975 |
| - size_type count(const K& k, size_t hash) const; |
8976 | 8861 | bool contains(const key_type& k) const;
|
8977 |
| - bool contains(const key_type& k, size_t hash) const; |
8978 | 8862 | template<class K>
|
8979 | 8863 | bool contains(const K& k) const;
|
8980 |
| - template<class K> |
8981 |
| - bool contains(const K& k, size_t hash) const; |
8982 | 8864 | pair<iterator, iterator> equal_range(const key_type& k);
|
8983 | 8865 | pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
|
8984 |
| - pair<iterator, iterator> equal_range(const key_type& k, size_t hash); |
8985 |
| - pair<const_iterator, const_iterator> equal_range(const key_type& k, size_t hash) const; |
8986 | 8866 | template<class K>
|
8987 | 8867 | pair<iterator, iterator> equal_range(const K& k);
|
8988 | 8868 | template<class K>
|
8989 | 8869 | pair<const_iterator, const_iterator> equal_range(const K& k) const;
|
8990 |
| - template<class K> |
8991 |
| - pair<iterator, iterator> equal_range(const K& k, size_t hash); |
8992 |
| - template<class K> |
8993 |
| - pair<const_iterator, const_iterator> equal_range(const K& k, size_t hash) const; |
8994 | 8870 |
|
8995 | 8871 | // bucket interface
|
8996 | 8872 | size_type bucket_count() const noexcept;
|
|
9299 | 9175 | // set operations
|
9300 | 9176 | iterator find(const key_type& k);
|
9301 | 9177 | const_iterator find(const key_type& k) const;
|
9302 |
| - iterator find(const key_type& k, size_t hash); |
9303 |
| - const_iterator find(const key_type& k, size_t hash) const; |
9304 | 9178 | template<class K>
|
9305 | 9179 | iterator find(const K& k);
|
9306 | 9180 | template<class K>
|
9307 | 9181 | const_iterator find(const K& k) const;
|
9308 |
| - template<class K> |
9309 |
| - iterator find(const K& k, size_t hash); |
9310 |
| - template<class K> |
9311 |
| - const_iterator find(const K& k, size_t hash) const; |
9312 | 9182 | size_type count(const key_type& k) const;
|
9313 |
| - size_type count(const key_type& k, size_t hash) const; |
9314 | 9183 | template<class K>
|
9315 | 9184 | size_type count(const K& k) const;
|
9316 |
| - template<class K> |
9317 |
| - size_type count(const K& k, size_t hash) const; |
9318 | 9185 | bool contains(const key_type& k) const;
|
9319 |
| - bool contains(const key_type& k, size_t hash) const; |
9320 | 9186 | template<class K>
|
9321 | 9187 | bool contains(const K& k) const;
|
9322 |
| - template<class K> |
9323 |
| - bool contains(const K& k, size_t hash) const; |
9324 | 9188 | pair<iterator, iterator> equal_range(const key_type& k);
|
9325 | 9189 | pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
|
9326 |
| - pair<iterator, iterator> equal_range(const key_type& k, size_t hash); |
9327 |
| - pair<const_iterator, const_iterator> equal_range(const key_type& k, size_t hash) const; |
9328 | 9190 | template<class K>
|
9329 | 9191 | pair<iterator, iterator> equal_range(const K& k);
|
9330 | 9192 | template<class K>
|
9331 | 9193 | pair<const_iterator, const_iterator> equal_range(const K& k) const;
|
9332 |
| - template<class K> |
9333 |
| - pair<iterator, iterator> equal_range(const K& k, size_t hash); |
9334 |
| - template<class K> |
9335 |
| - pair<const_iterator, const_iterator> equal_range(const K& k, size_t hash) const; |
9336 | 9194 |
|
9337 | 9195 | // bucket interface
|
9338 | 9196 | size_type bucket_count() const noexcept;
|
|
0 commit comments