File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change 881
881
\begin {itemdescr }
882
882
\pnum
883
883
\mandates
884
- \tcode {T} is an implicit-lifetime type\iref {basic.types.general }.
884
+ \tcode {T} is an implicit-lifetime type\iref {basic.types.general }
885
+ and not an incomplete type\iref {term.incomplete.type }.
885
886
886
887
\pnum
887
888
\expects
930
931
\end {itemdecl }
931
932
932
933
\begin {itemdescr }
934
+ \pnum
935
+ \mandates
936
+ \tcode {T} is a complete type.
937
+
933
938
\pnum
934
939
\expects
935
- \tcode {n > 0} is \tcode {true}.
940
+ \tcode {p} is suitably aligned for an array of \tcode {T} or is null.
941
+ \tcode {n <= size_t(-1) / sizeof(T)} is \tcode {true}.
942
+ If \tcode {n > 0} is \tcode {true},
943
+ \range {(char*)p}{(char*)p + (n * sizeof(T))} denotes
944
+ a region of allocated storage that is
945
+ a subset of the region of storage
946
+ reachable through\iref {basic.compound } \tcode {p}.
936
947
937
948
\pnum
938
949
\effects
939
- Equivalent to:
940
- \tcode {return *start_lifetime_as<U>(p);}
950
+ If \tcode {n > 0} is \tcode {true},
951
+ equivalent to
952
+ \tcode {start_lifetime_as<U>(p)}
941
953
where \tcode {U} is the type `` array of \tcode {n} \tcode {T}'' .
954
+ Otherwise, there are no effects.
955
+
956
+ \pnum
957
+ \returns
958
+ A pointer to the first element of the created array,
959
+ if any;
960
+ otherwise,
961
+ a pointer that compares equal to \tcode {p}\iref {expr.eq }.
942
962
\end {itemdescr }
943
963
944
964
\rSec 2[allocator.tag]{Allocator argument tag}
You can’t perform that action at this time.
0 commit comments