|
7673 | 7673 | \begin{codeblock} |
7674 | 7674 | namespace std::pmr { |
7675 | 7675 | template<class Tp = byte> class polymorphic_allocator { |
7676 | | - memory_resource* memory_rsrc; // \expos |
| 7676 | + memory_resource* @\exposid{memory-rsrc}@; // \expos |
7677 | 7677 |
|
7678 | 7678 | public: |
7679 | 7679 | using value_type = Tp; |
|
7729 | 7729 | \begin{itemdescr} |
7730 | 7730 | \pnum |
7731 | 7731 | \effects |
7732 | | -Sets \tcode{memory_rsrc} to \tcode{get_default_resource()}. |
| 7732 | +Sets \exposid{memory-rsrc} to \tcode{get_default_resource()}. |
7733 | 7733 | \end{itemdescr} |
7734 | 7734 |
|
7735 | 7735 | \indexlibraryctor{polymorphic_allocator}% |
|
7744 | 7744 |
|
7745 | 7745 | \pnum |
7746 | 7746 | \effects |
7747 | | -Sets \tcode{memory_rsrc} to \tcode{r}. |
| 7747 | +Sets \exposid{memory-rsrc} to \tcode{r}. |
7748 | 7748 |
|
7749 | 7749 | \pnum |
7750 | 7750 | \throws |
|
7764 | 7764 | \begin{itemdescr} |
7765 | 7765 | \pnum |
7766 | 7766 | \effects |
7767 | | -Sets \tcode{memory_rsrc} to \tcode{other.resource()}. |
| 7767 | +Sets \exposid{memory-rsrc} to \tcode{other.resource()}. |
7768 | 7768 | \end{itemdescr} |
7769 | 7769 |
|
7770 | 7770 |
|
|
7782 | 7782 | throws \tcode{bad_array_new_length}. |
7783 | 7783 | Otherwise equivalent to: |
7784 | 7784 | \begin{codeblock} |
7785 | | -return static_cast<Tp*>(memory_rsrc->allocate(n * sizeof(Tp), alignof(Tp))); |
| 7785 | +return static_cast<Tp*>(\exposid{memory-rsrc}->allocate(n * sizeof(Tp), alignof(Tp))); |
7786 | 7786 | \end{codeblock} |
7787 | 7787 | \end{itemdescr} |
7788 | 7788 |
|
|
7795 | 7795 | \pnum |
7796 | 7796 | \expects |
7797 | 7797 | \tcode{p} was allocated from a memory resource \tcode{x}, |
7798 | | -equal to \tcode{*memory_rsrc}, |
| 7798 | +equal to \tcode{*\exposid{memory-rsrc}}, |
7799 | 7799 | using \tcode{x.allocate(n * sizeof(Tp), alignof(Tp))}. |
7800 | 7800 |
|
7801 | 7801 | \pnum |
7802 | 7802 | \effects |
7803 | | -Equivalent to \tcode{memory_rsrc->deallocate(p, n * sizeof(Tp), alignof(Tp))}. |
| 7803 | +Equivalent to \tcode{\exposid{memory-rsrc}->deallocate(p, n * sizeof(Tp), alignof(Tp))}. |
7804 | 7804 |
|
7805 | 7805 | \pnum |
7806 | 7806 | \throws |
|
7815 | 7815 | \begin{itemdescr} |
7816 | 7816 | \pnum |
7817 | 7817 | \effects |
7818 | | -Equivalent to: \tcode{return memory_rsrc->allocate(nbytes, alignment);} |
| 7818 | +Equivalent to: \tcode{return \exposid{memory-rsrc}->allocate(nbytes, alignment);} |
7819 | 7819 |
|
7820 | 7820 | \pnum |
7821 | 7821 | \begin{note} |
|
7834 | 7834 | \begin{itemdescr} |
7835 | 7835 | \pnum |
7836 | 7836 | \effects |
7837 | | -Equivalent to \tcode{memory_rsrc->deallocate(p, nbytes, alignment)}. |
| 7837 | +Equivalent to \tcode{\exposid{memory-rsrc}->deallocate(p, nbytes, alignment)}. |
7838 | 7838 | \end{itemdescr} |
7839 | 7839 |
|
7840 | 7840 | \indexlibrarymember{allocate_object}{polymorphic_allocator}% |
|
7982 | 7982 | \begin{itemdescr} |
7983 | 7983 | \pnum |
7984 | 7984 | \returns |
7985 | | -\tcode{memory_rsrc}. |
| 7985 | +\exposid{memory-rsrc}. |
7986 | 7986 | \end{itemdescr} |
7987 | 7987 |
|
7988 | 7988 | \rSec3[mem.poly.allocator.eq]{Equality} |
|
0 commit comments