diff --git a/source/lib-intro.tex b/source/lib-intro.tex index 4444d26a0d..18980fe659 100644 --- a/source/lib-intro.tex +++ b/source/lib-intro.tex @@ -2958,14 +2958,16 @@ The following exposition-only concept defines the minimal requirements on an Allocator type. \begin{codeblock} -template -concept @\defexposconcept{simple-allocator}@ = - requires(Alloc alloc, size_t n) { - { *alloc.allocate(n) } -> @\libconcept{same_as}@; - { alloc.deallocate(alloc.allocate(n), n) }; - } && - @\libconcept{copy_constructible}@ && - @\libconcept{equality_comparable}@; +namespace std { + template + concept @\defexposconcept{simple-allocator}@ = + requires(Alloc alloc, size_t n) { + { *alloc.allocate(n) } -> @\libconcept{same_as}@; + { alloc.deallocate(alloc.allocate(n), n) }; + } && + @\libconcept{copy_constructible}@ && + @\libconcept{equality_comparable}@; +} \end{codeblock} A type \tcode{Alloc} models \exposconcept{simple-allocator} if it meets the requirements of \ref{allocator.requirements.general}.